Commit aa19f5bf authored by Danilo Pala's avatar Danilo Pala
Browse files

Update PROV_SC_02_deletion_script.txt, PROV_SC_02_script.txt and...

Update PROV_SC_02_deletion_script.txt, PROV_SC_02_script.txt and svlan_registration_creation.xml.pyformat and added svlan_registration_deletion.xml.pyformat
parent 56a3ce40
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2,11 +2,12 @@

set feedback_to_output true
ne load ne.yaml
mapping add COMMON '{svid: 201, svlan_name: VLAN-201, cvid1: 101, cvlan1_name: VLAN-101, cvid2: 102, cvlan2_name: VLAN-102}`
mapping add COMMON '{svid: 201, svlan_name: VLAN-201, cvid1: 101, cvlan1_name: VLAN-101, cvid2: 102, cvlan2_name: VLAN-102}'

mapping add NE_SPECIFIC --ne my_ne1 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 1, port2_portref: 3, port1_name: eth0}'
mapping add NE_SPECIFIC --ne my_ne2 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 1, port2_portref: 3, port1_name: eth0}'

connect
netconf edit-config --target running --config-template svlan_deletion.xml.pyformat --mappings bridge
netconf edit-config --target running --config-template svlan_deletion.xml.pyformat --mappings COMMON NE_SPECIFIC
netconf edit-config --target running --config-template svlan_registration_deletion.xml.pyformat --mappings COMMON NE_SPECIFIC
netconf close-session
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@

set feedback_to_output true
ne load ne.yaml
mapping add COMMON '{svid: 201, svlan_name: VLAN-201, cvid1: 101, cvlan1_name: VLAN-101, cvid2: 102, cvlan2_name: VLAN-102}`
mapping add COMMON '{svid: 201, svlan_name: VLAN-201, cvid1: 101, cvlan1_name: VLAN-101, cvid2: 102, cvlan2_name: VLAN-102}'

mapping add NE_SPECIFIC --ne my_ne1 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 1, port2_portref: 3, port1_name: eth0}'
mapping add NE_SPECIFIC --ne my_ne2 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 1, port2_portref: 3, port1_name: eth0}'
+2 −2
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
<config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
    <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
        <interface>
			<name>{port1_portref}</name>
   		    <name>{port1_name}</name>
            <bridge-port xmlns="urn:ieee:std:802.1Q:yang:ieee802-dot1q-bridge">
                <cvid-registration xmlns="urn:ieee:std:802.1Q:yang:ieee802-dot1q-pb">
                    <cvid>{cvid1}</cvid>
+16 −0
Original line number Diff line number Diff line
<?xml version="1.0"?>
<nc:config xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
    <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
        <interface>
            <name>{port1_name}</name>
            <bridge-port xmlns="urn:ieee:std:802.1Q:yang:ieee802-dot1q-bridge">
                <cvid-registration xmlns="urn:ieee:std:802.1Q:yang:ieee802-dot1q-pb" nc:operation="delete">
                    <cvid>{cvid1}</cvid>
                </cvid-registration>
                <cvid-registration xmlns="urn:ieee:std:802.1Q:yang:ieee802-dot1q-pb" nc:operation="delete">
                    <cvid>{cvid2}</cvid>
                </cvid-registration>
            </bridge-port>
        </interface>
    </interfaces>
</nc:config>