cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1614
Views
0
Helpful
3
Replies

L2VPN XCONNECT " no mpls control-word"

bjronmork
Level 1
Level 1

Hi Expert,

I am facing issue; for L2VPN xConnect, IOS-NED is generating extra command which we are not configuring and not required; as per below

 

admin@ncs(config)# show full-configuration devices device 7606-S-PE config ios:interface Vlan 65 
devices device 7606-S-PE
config
ios:interface Vlan65
description NSO_L2VPN_Testing
xconnect 12.13.14.15 1551 encapsulation mpls pw-class PVlan
backup peer 15.14.13.12 1232 pw-class PVlan
no mpls control-word (not required)
exit
no ip address
service-policy input 2M
service-policy output 2M
no shutdown
exit
!
!

How can I remove (no mpls control-word) command. Please anyone suggest. Thanks

1 Accepted Solution

Accepted Solutions

I believe this is done because on some devices the xconnect is created with "mpls control-word" set. So (unless you have also set it in NSO) NSO has to clear it with the no command when it creates the xconnect.

 

It shouldn't cause a problem, but if it does then you should raise a TAC case.

View solution in original post

3 Replies 3

lmanor
Cisco Employee
Cisco Employee

In the NED this control-word leaf is modeled as an 'empty' type with 'tailf:cli-show-no' annotation:

 

          / interface * / xconnect encapsulation / mpls control-word

          leaf control-word {

            tailf:info "Include control-word in pseudowire packets";

            tailf:cli-show-no;

            type empty;

          }

 

This means that it will show the 'no mpls control-word' if this leaf is not set and show 'mpls control-word' when it is set.

 

admin@ncs% set devices device ios0 config ios:interface Vlan 65 description NSO_L2VPN_Testing xconnect address 12.13.14.15 vcid 1551 mpls control-word

admin@ncs% commit dry-run outformat native

native {

    device {

        name ios0

        data interface Vlan65

              description "NSO_L2VPN_Testing"

              xconnect 12.13.14.15 1551 encapsulation mpls

               mpls control-word

              exit

              no shutdown

             exit

    }

}

 

[edit]
admin@ncs% delete devices device ios0 config ios:interface Vlan 65 description NSO_L2VPN_Testing xconnect address 12.13.14.15 vcid 1551 mpls control-word

 

admin@ncs% commit dry-run outformat native                                      

native {

    device {

        name ios0

        data interface Vlan65

              xconnect encapsulation mpls

               no mpls control-word

              exit

              no shutdown

             exit

    }

}

 

 

 

Hi Imanor, Thanks for your reply.

 

Does this mean; We can not remove this command?, either "mpls control-word" or "no mpls control-word" command will be (must) available. So, there is no any-other way out to remove it?

 

Regards,

Bjron

 

I believe this is done because on some devices the xconnect is created with "mpls control-word" set. So (unless you have also set it in NSO) NSO has to clear it with the no command when it creates the xconnect.

 

It shouldn't cause a problem, but if it does then you should raise a TAC case.

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: