nso@ncs(config-movePWService-mau2)# commit dry-run | debug template Evaluating "/device" (from file "movePWService-template.xml", line 9) Context node: /services/movePWService:movePWService[name='mau2'] Result: empty node - skipping siblings Evaluating "$localDeviceOld" (from file "OPM-Mdr-IOSXR.xml", line 38) Context node: /services/movePWService:movePWService[name='mau2'] Result: "OPM-9K1-F1" Operation 'merge' on existing node: /devices/device[name='OPM-9K1-F1'] (from file "OPM-Mdr-IOSXR.xml", line 38) Evaluating "$localInterfaceOld" (from file "OPM-Mdr-IOSXR.xml", line 43) Context node: /services/movePWService:movePWService[name='mau2'] Result: "0/4/1/7.250" Operation 'delete' on node: /devices/device[name='OPM-9K1-F1']/config/cisco-ios-xr:interface/GigabitEthernet-subinterface/GigabitEthernet[id='0/4/1/7.250'] (from file "OPM-Mdr-IOSXR.xml", line 43) Operation 'merge' on existing node: /devices/device[name='OPM-9K1-F1']/config/cisco-ios-xr:l2vpn (from file "OPM-Mdr-IOSXR.xml", line 47) Evaluating "$group" (from file "OPM-Mdr-IOSXR.xml", line 50) Context node: /services/movePWService:movePWService[name='mau2'] Result: "MOVE" Operation 'merge' on existing node: /devices/device[name='OPM-9K1-F1']/config/cisco-ios-xr:l2vpn/xconnect/group[name='MOVE'] (from file "OPM-Mdr-IOSXR.xml", line 50) Evaluating "$p2p" (from file "OPM-Mdr-IOSXR.xml", line 52) Context node: /services/movePWService:movePWService[name='mau2'] Result: "p2p250" Operation 'delete' on node: /devices/device[name='OPM-9K1-F1']/config/cisco-ios-xr:l2vpn/xconnect/group[name='MOVE']/p2p[name='p2p250'] (from file "OPM-Mdr-IOSXR.xml", line 52) Evaluating "$localDeviceNew" (from file "OPM-Mdr-IOSXR.xml", line 60) Context node: /services/movePWService:movePWService[name='mau2'] Result: "OPM-9K1-F2" Operation 'merge' on existing node: /devices/device[name='OPM-9K1-F2'] (from file "OPM-Mdr-IOSXR.xml", line 60) Evaluating "$localInterfaceNew" (from file "OPM-Mdr-IOSXR.xml", line 65) Context node: /services/movePWService:movePWService[name='mau2'] Result: "0/6/0/4.250" Operation 'merge' on non-existing node: /devices/device[name='OPM-9K1-F2']/config/cisco-ios-xr:interface/TenGigE-subinterface/TenGigE[id='0/6/0/4.250'] (from file "OPM-Mdr-IOSXR.xml", line 65) Operation 'merge' on non-existing node: /devices/device[name='OPM-9K1-F2']/config/cisco-ios-xr:interface/TenGigE-subinterface/TenGigE[id='0/6/0/4.250']/mode (from file "OPM-Mdr-IOSXR.xml", line 66) Fetching literal "l2transport" (from file "OPM-Mdr-IOSXR.xml", line 66) Setting /devices/device[name='OPM-9K1-F2']/config/cisco-ios-xr:interface/TenGigE-subinterface/TenGigE[id='0/6/0/4.250']/mode to "l2transport" Evaluating "$localVlanNew" (from file "OPM-Mdr-IOSXR.xml", line 70) Context node: /services/movePWService:movePWService[name='mau2'] Result: "250" Operation 'merge' on non-existing node: /devices/device[name='OPM-9K1-F2']/config/cisco-ios-xr:interface/TenGigE-subinterface/TenGigE[id='0/6/0/4.250']/encapsulation/dot1q/second-dot1q[.='250'] (from file "OPM-Mdr-IOSXR.xml", line 70) Fetching literal "2" (from file "OPM-Mdr-IOSXR.xml", line 69) Operation 'merge' on non-existing node: /devices/device[name='OPM-9K1-F2']/config/cisco-ios-xr:interface/TenGigE-subinterface/TenGigE[id='0/6/0/4.250']/encapsulation/dot1q/vlan-id[.='2'] (from file "OPM-Mdr-IOSXR.xml", line 69) Evaluating conditional expression "boolean($servicePolicyIn != 'None')" (from file "OPM-Mdr-IOSXR.xml", line 74) Context node: /services/movePWService:movePWService[name='mau2'] Result: false - skipping siblings Evaluating conditional expression "boolean($servicePolicyOut != 'None')" (from file "OPM-Mdr-IOSXR.xml", line 77) Context node: /services/movePWService:movePWService[name='mau2'] Result: false - skipping siblings Operation 'merge' on non-existing node: /devices/device[name='OPM-9K1-F2']/config/cisco-ios-xr:interface/TenGigE-subinterface/TenGigE[id='0/6/0/4.250']/rewrite/ingress/tag/pop (from file "OPM-Mdr-IOSXR.xml", line 84) Fetching literal "1" (from file "OPM-Mdr-IOSXR.xml", line 84) Setting /devices/device[name='OPM-9K1-F2']/config/cisco-ios-xr:interface/TenGigE-subinterface/TenGigE[id='0/6/0/4.250']/rewrite/ingress/tag/pop to "1" Operation 'merge' on non-existing node: /devices/device[name='OPM-9K1-F2']/config/cisco-ios-xr:interface/TenGigE-subinterface/TenGigE[id='0/6/0/4.250']/rewrite/ingress/tag/mode (from file "OPM-Mdr-IOSXR.xml", line 85) Fetching literal "symmetric" (from file "OPM-Mdr-IOSXR.xml", line 85) Setting /devices/device[name='OPM-9K1-F2']/config/cisco-ios-xr:interface/TenGigE-subinterface/TenGigE[id='0/6/0/4.250']/rewrite/ingress/tag/mode to "symmetric" Operation 'merge' on existing node: /devices/device[name='OPM-9K1-F2']/config/cisco-ios-xr:l2vpn (from file "OPM-Mdr-IOSXR.xml", line 92) Evaluating "$group" (from file "OPM-Mdr-IOSXR.xml", line 95) Context node: /services/movePWService:movePWService[name='mau2'] Result: "MOVE" Operation 'merge' on non-existing node: /devices/device[name='OPM-9K1-F2']/config/cisco-ios-xr:l2vpn/xconnect/group[name='MOVE'] (from file "OPM-Mdr-IOSXR.xml", line 95) Evaluating "$p2p" (from file "OPM-Mdr-IOSXR.xml", line 97) Context node: /services/movePWService:movePWService[name='mau2'] Result: "p2p250" Operation 'merge' on non-existing node: /devices/device[name='OPM-9K1-F2']/config/cisco-ios-xr:l2vpn/xconnect/group[name='MOVE']/p2p[name='p2p250'] (from file "OPM-Mdr-IOSXR.xml", line 97) Evaluating "$localInterfaceTypeNew" (from file "OPM-Mdr-IOSXR.xml", line 99) Context node: /services/movePWService:movePWService[name='mau2'] Result: "TenGigE" Evaluating "$localInterfaceNew" (from file "OPM-Mdr-IOSXR.xml", line 99) Context node: /services/movePWService:movePWService[name='mau2'] Result: "0/6/0/4.250" Operation 'merge' on non-existing node: /devices/device[name='OPM-9K1-F2']/config/cisco-ios-xr:l2vpn/xconnect/group[name='MOVE']/p2p[name='p2p250']/interface[name='TenGigE0/6/0/4.250'] (from file "OPM-Mdr-IOSXR.xml", line 99) Evaluating "$neighbor" (from file "OPM-Mdr-IOSXR.xml", line 102) Context node: /services/movePWService:movePWService[name='mau2'] Result: "172.16.12.25" Evaluating "$pwIdNew" (from file "OPM-Mdr-IOSXR.xml", line 103) Context node: /services/movePWService:movePWService[name='mau2'] Result: "4545656" Operation 'merge' on non-existing node: /devices/device[name='OPM-9K1-F2']/config/cisco-ios-xr:l2vpn/xconnect/group[name='MOVE']/p2p[name='p2p250']/neighbor[address='172.16.12.25'][pw-id='4545656'] (from file "OPM-Mdr-IOSXR.xml", line 103) Operation 'merge' on non-existing node: /devices/device[name='OPM-9K1-F2']/config/cisco-ios-xr:l2vpn/xconnect/group[name='MOVE']/p2p[name='p2p250']/neighbor[address='172.16.12.25'][pw-id='4545656']/ip-version (from file "OPM-Mdr-IOSXR.xml", line 104) Fetching literal "ipv4" (from file "OPM-Mdr-IOSXR.xml", line 104) Setting /devices/device[name='OPM-9K1-F2']/config/cisco-ios-xr:l2vpn/xconnect/group[name='MOVE']/p2p[name='p2p250']/neighbor[address='172.16.12.25'][pw-id='4545656']/ip-version to "ipv4" Operation 'merge' on non-existing node: /devices/device[name='OPM-9K1-F2']/config/cisco-ios-xr:l2vpn/xconnect/group[name='MOVE']/p2p[name='p2p250']/neighbor[address='172.16.12.25'][pw-id='4545656']/pw-class (from file "OPM-Mdr-IOSXR.xml", line 105) Evaluating "$pwClass" (from file "OPM-Mdr-IOSXR.xml", line 105) Context node: /services/movePWService:movePWService[name='mau2'] Result: "CW" Setting /devices/device[name='OPM-9K1-F2']/config/cisco-ios-xr:l2vpn/xconnect/group[name='MOVE']/p2p[name='p2p250']/neighbor[address='172.16.12.25'][pw-id='4545656']/pw-class to "CW" Evaluating "$remoteDevice" (from file "OPM-Feeder-IOS.xml", line 45) Context node: /services/movePWService:movePWService[name='mau2'] Result: "A1-MDR" Operation 'merge' on existing node: /devices/device[name='A1-MDR'] (from file "OPM-Feeder-IOS.xml", line 45) Evaluating conditional expression "boolean($remotePortType = 'GigabitEthernet')" (from file "OPM-Feeder-IOS.xml", line 73) Context node: /services/movePWService:movePWService[name='mau2'] Result: true - continuing Evaluating "$remotePortId" (from file "OPM-Feeder-IOS.xml", line 74) Context node: /services/movePWService:movePWService[name='mau2'] Result: "9/1" Operation 'merge' on existing node: /devices/device[name='A1-MDR']/config/ios:interface/GigabitEthernet[name='9/1'] (from file "OPM-Feeder-IOS.xml", line 74) Evaluating "$remoteServiceInstance" (from file "OPM-Feeder-IOS.xml", line 77) Context node: /services/movePWService:movePWService[name='mau2'] Result: "150" Operation 'merge' on existing node: /devices/device[name='A1-MDR']/config/ios:interface/GigabitEthernet[name='9/1']/service/instance[id='150'] (from file "OPM-Feeder-IOS.xml", line 77) Operation 'merge' on existing node: /devices/device[name='A1-MDR']/config/ios:interface/GigabitEthernet[name='9/1']/service/instance[id='150']/xconnect (from file "OPM-Feeder-IOS.xml", line 78) Operation 'replace' on node: /devices/device[name='A1-MDR']/config/ios:interface/GigabitEthernet[name='9/1']/service/instance[id='150']/xconnect/address (from file "OPM-Feeder-IOS.xml", line 79) Evaluating "$localL9New" (from file "OPM-Feeder-IOS.xml", line 79) Context node: /services/movePWService:movePWService[name='mau2'] Result: "172.16.12.2" Setting /devices/device[name='A1-MDR']/config/ios:interface/GigabitEthernet[name='9/1']/service/instance[id='150']/xconnect/address to "172.16.12.2" Operation 'replace' on node: /devices/device[name='A1-MDR']/config/ios:interface/GigabitEthernet[name='9/1']/service/instance[id='150']/xconnect/vcid (from file "OPM-Feeder-IOS.xml", line 80) Evaluating "$pwIdNew" (from file "OPM-Feeder-IOS.xml", line 80) Context node: /services/movePWService:movePWService[name='mau2'] Result: "4545656" Setting /devices/device[name='A1-MDR']/config/ios:interface/GigabitEthernet[name='9/1']/service/instance[id='150']/xconnect/vcid to "4545656" Evaluating conditional expression "boolean($neighborRemoteBk != 'None')" (from file "OPM-Feeder-IOS.xml", line 81) Context node: /services/movePWService:movePWService[name='mau2'] Result: false - skipping siblings Operation 'merge' on existing node: /devices/device[name='A1-MDR']/config/ios:interface/GigabitEthernet[name='9/1']/service/instance[id='150']/xconnect/mtu (from file "OPM-Feeder-IOS.xml", line 87) Fetching literal "9202" (from file "OPM-Feeder-IOS.xml", line 87) Setting /devices/device[name='A1-MDR']/config/ios:interface/GigabitEthernet[name='9/1']/service/instance[id='150']/xconnect/mtu to "9202" Evaluating conditional expression "boolean($remotePortType = 'Port-channel')" (from file "OPM-Feeder-IOS.xml", line 117) Context node: /services/movePWService:movePWService[name='mau2'] Result: false - skipping siblings Evaluating conditional expression "boolean($remotePortType = 'TenGigabitEthernet')" (from file "OPM-Feeder-IOS.xml", line 93) Context node: /services/movePWService:movePWService[name='mau2'] Result: false - skipping siblings cli { local-node { data devices { device OPM-9K1-F1 { config { cisco-ios-xr:interface { GigabitEthernet-subinterface { - GigabitEthernet 0/4/1/7.250 { - mode l2transport; - description "test per NSO Valerio"; - mtu 1514; - encapsulation { - dot1q { - vlan-id 250; - second-dot1q 1000; - } - } - rewrite { - ingress { - tag { - pop 1; - mode symmetric; - } - } - } - } } } } } device OPM-9K1-F2 { config { cisco-ios-xr:interface { TenGigE-subinterface { + TenGigE 0/6/0/4.250 { + mode l2transport; + encapsulation { + dot1q { + vlan-id 2; + second-dot1q 250; + } + } + rewrite { + ingress { + tag { + pop 1; + mode symmetric; + } + } + } + } } } } } } services { + movePWService mau2 { + mdrSrcName OPM-9K1-F1; + mdrSrcIf GigabitEthernet0/4/1/7; + peSrcName OPM-RGJIT001; + peSrcIf xe-1/0/0; + peSrcUnit 250; + peSrcSvlan 250; + peSrcCvlan 1000; + mdrDstName OPM-9K1-F2; + mdrDstIf TenGigE0/6/0/4; + peDstName OPM-RGJIT001; + peDstIf xe-1/0/0; + peDstUnit 250; + } } } } nso@ncs(config-movePWService-mau2)#