cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
735
Views
0
Helpful
9
Replies

[NSO 4.3/4.4] vrf static route support for XR NED

Carlos A. Silva
Level 3
Level 3

Hi!

Does NSO support the provisioning of a static route inside a vrf when trying to configure an IOS XR device?

I've tried this in NSO 4.3 and the regular XR configuration path/commands:

router static

  vrf {name}

are not present  (looks like) . There is another configuration path that does appear, but when applied the router doesn't like it:

device devices {

2

  device XR-1 {

  device XR-1 {

3

  config {

  config {

4

  cisco-ios-xr:ip {

  cisco-ios-xr:ip {

5

  route {

  route {

6

  vrf {

  vrf {

7

+ name test;

8

+ dest 10.0.0.1;

9

+ dest-mask 255.255.255.255;

10

+ forwarding-address 172.16.1.1;

11

  }

  }

I just installed NSO 4.4 to see if this has changed, but since it has not, I thought I'd ask here if it's even supported.

Thanks,

c.

1 Accepted Solution

Accepted Solutions

The NED versions that come with NSO are pretty minimal, and only for use with the demos and labs in the examples directory. Please use a recent NED version.

Cheers,

KJ.

View solution in original post

9 Replies 9

KJ Rossavik
Cisco Employee
Cisco Employee

Which version of the IOS XR NED are you using? The current latest is 6.0.

You could try to put the configuration on the device and do a sync-from, and have a look at the resulting config in NSO?

Cheers,

KJ.

Well, I honestly don't know. I've been using whatever comes with NSO4.3 up until now. I will run your suggestion and either post output or solution here, if fixed.

Thanks a lot!

c.

The NED versions that come with NSO are pretty minimal, and only for use with the demos and labs in the examples directory. Please use a recent NED version.

Cheers,

KJ.

Will look into the docs to see how to do it.

Where do you get the newer NEDs, though?

Hi, Kjetil:

I have the new (XR) NEDS now, I did a make on them and copied it to my running netsim environment, just like I first did when I setup my local NSO installation, but when I try to run netsim, I get the following error message:

./ietf-netconf-acm.fxs: Must be recompiled!

yan@nso4:~/nso-run$ ncs-netsim start

DEVICE IOS-0 OK STARTED

DEVICE IOS-1 OK STARTED

Bad configuration: confd.conf:0: ./ietf-netconf-acm.fxs: Must be recompiled!

Daemon died status=21

DEVICE XR-0 FAIL

Bad configuration: confd.conf:0: ./ietf-netconf-acm.fxs: Must be recompiled!

Daemon died status=21

DEVICE XR-1 FAIL

Bad configuration: confd.conf:0: ./ietf-netconf-acm.fxs: Must be recompiled!

Daemon died status=21

DEVICE XR-2 FAIL

yan@nso4:~/nso-run$


Can you help?

Thanks,

c.

Hi,

just re-create your NETSIM devices. Looks like there is a version mismatch from when they were originally created to your current version.

ncs-netsim delete-network

and then

ncs-netsim create-network ...... (add your commands)

Roque

Thank you very much for your reply, Roque. I did this, actually, and no luck. I even cleaned my nso-run directory completely and stryed from scratch, no luck.

=============

I'd like to add I reinstalled NSO4.4, cleaned the whole thing. started from scratch, but even when I try to start netsim I get:

yan@nso4:~/nso-run$ ls

netsim  packages

yan@nso4:~/nso-run$ ncs-netsim start

DEVICE IOS-0 OK STARTED

DEVICE IOS-1 OK STARTED

Bad configuration: confd.conf:0: ./ietf-netconf-acm.fxs: Must be recompiled!

Daemon died status=21

DEVICE XR-0 FAIL

Bad configuration: confd.conf:0: ./ietf-netconf-acm.fxs: Must be recompiled!

Daemon died status=21

DEVICE XR-1 FAIL

Bad configuration: confd.conf:0: ./ietf-netconf-acm.fxs: Must be recompiled!

Daemon died status=21

DEVICE XR-2 FAIL

yan@nso4:~/nso-run$


I'm not sure if using a local-install has anything to do with this. Any ideas?

Thanks!

c.

This last issue (NED upgrade) has been solved and documented here:

Re: [Problem with NSO NED upgrade]

====

As for the static route problem, upgrading to a newer version of NED definitely did the trick. Thanks, KJ!

Just configured this static route:

RP/0/0/CPU0:XR-0-PE#show run router static

Tue Jun 13 09:26:09.855 UTC

router static

vrf mgmt

  address-family ipv4 unicast

   0.0.0.0/0 172.16.1.1

  !

!

!

RP/0/0/CPU0:XR-0-PE#


But when I do a sync-from, NSO doesn't pull it from the router. Basically no 'router static' configuration path:




admin@ncs> request devices device XR-0 sync-from         

result true

[ok][2017-06-13 12:32:38]

admin@ncs> show configuration devices device XR-0

address   172.16.1.10;

port      22;

ssh {

    host-key ssh-rsa {

        key-data "AAAAB3NzaC1yc2EAAAADAQABAAABAQC12PbaBSkNvWEzBE4HE/ekDACNPXy+2tZRKFAfYpNu\n/zP4fhi0NNEQZRG3y6CFCBQyKgDTJ+fGvJFpATC7L4KyczyxWupKDKFwA9dOiPf827vHeEq0\n+PxrsadX9bBbqwXwSqhsZf67gUbbyVCyMPOcycbMcdrcIWi4avQbIuG05PAwL63QH9mgVg+X\nnuxaF/Hm8pFcIc8eKhxJ2opgRwoCeBq76OnmI24azrnpUX5ZsbKHQS0LApcjVViouiJ1JhM1\nWcMiwdoYK50hRpn8lXeuGSOi+cdGf3i/6LeTo8Nk2SOB94dRaLiYOac78hMoLGFNnwvsMWd8\nZGJal7emPNr7";

    }

}

authgroup mygroup;

device-type {

    cli {

        ned-id cisco-ios-xr;

    }

}

state {

    admin-state unlocked;

}

config {

    cisco-ios-xr:hostname XR-0-PE;

    cisco-ios-xr:vrf {

        vrf-list mgmt {

            address-family {

                ipv4 {

                    unicast;

                }

            }

        }

    }

    cisco-ios-xr:domain {

        name mnet.com.mx;

    }

    cisco-ios-xr:mpls {

        ldp {

            router-id 10.0.0.10;

            interface GigabitEthernet0/0/0/0.1;

        }

    }

    cisco-ios-xr:ssh {

        server {

            vrf default;

            vrf mgmt;

        }

    }

    cisco-ios-xr:interface {

        Loopback 0 {

            ipv4 {

                address {

                    ip   10.0.0.10;

                    mask 255.255.255.255;

                }

            }

        }

        MgmtEth 0/0/CPU0/0 {

            ipv4 {

                address {

                    ip   172.16.1.10;

                    mask 255.255.255.0;

                }

            }

            vrf mgmt;

        }

        GigabitEthernet 0/0/0/0.1 {

            ipv4 {

                address {

                    ip   10.10.11.10;

                    mask 255.255.255.0;

                }

            }

            encapsulation {

                dot1q {

                    1011;

                }

            }

        }

    }

    cisco-ios-xr:router {

        ospf 1 {

            router-id 10.0.0.10;

            area 0 {

                interface GigabitEthernet0/0/0/0.1 {

                    network point-to-point;

                    mtu-ignore {

                        enable;

                    }

                }

                interface Loopback0 {

                    passive {

                        enable;

                    }

                }

            }

        }

        bgp {

            bgp-no-instance 1 {

                address-family {

                    ipv4 {

                        unicast;

                    }

                    vpnv4 {

                        unicast;

                    }

                }

            }

        }

    }

}

[ok][2017-06-13 12:32:56]

admin@ncs>

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: