cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
684
Views
0
Helpful
1
Replies

Yang File changes

robert.lee2
Level 1
Level 1

Running NSO ver 4.5.5.1.  When updating the structure/nodes defined in the yang file for a service package, I have noticed that changes were not taking effect, despite - running a make clean all, and doing a packages reload.  The changes are visible on cli, when inputting values, but commit dry-run does not show the expected output.  To make this work I had to change namespace (no there was no conflict) OR change the name of the module/prefix in the yang file.  After making the change, and doing the make/pkg reload the commit dry-run output was fine.  Feel like I might be missing something basic here.....

1 Reply 1

robert.lee2
Level 1
Level 1

>>>>Just me again to show an example of what I am seeing

test123@ncs(config)# route-bgp-l3vrf SRBHONTFPE21 666662 reqid req1 route-bgp-l3vrf-group vFW2 imp-policy t2
test123@ncs(config-route-bgp-l3vrf-group-vFW2)# commit dry-run
cli {
    local-node {
        data  devices {
                  device SRBHONTFPE21 {
                      config {
                          alu:service {
                              vprn 666662 {
                                  bgp {
             +                        group vFW2;
                                  }
                              }
                          }
                      }
                  }
              }
             +route-bgp-l3vrf SRBHONTFPE21 666662 {
             +    reqid req1;
             +    route-bgp-l3vrf-group vFW2;
             +}
    }
}

>>> Note above that the dry-run output does not show the imp-policy t2, under the vFW2 node.

 

>>> Now I go ahead and commit anyways

test123@ncs(config-route-bgp-l3vrf-group-vFW2)# commit
commit-queue-id 1532457495559
Commit complete.
test123@ncs(config-route-bgp-l3vrf-group-vFW2)# top

 

>>> Now notice below that imp-policy [t2] was anyways written to the db.....
test123@ncs(config)# show full-configuration route-bgp-l3vrf
route-bgp-l3vrf SRBHONTFPE21 666662
 reqid req1
 route-bgp-l3vrf-group vFW2
  imp-policy [ t2 ]
 !
!

>>> Not going to show this here, but if I edit the yang file in my pkg, and change the namespace to something else, do a make, reload pkgs, the commit dry-run output also starts showing the expected result........