Loading scripts/service_provisioning/PROV_SC_02/PROV_SC_02_deletion_script.txt 0 → 100644 +13 −0 Original line number Diff line number Diff line # PROV_C_01_deletion_script.txt for Lightweight NETCONF controlleur lncc.py 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 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 COMMON NE_SPECIFIC netconf edit-config --target running --config-template svlan_registration_deletion.xml.pyformat --mappings COMMON NE_SPECIFIC netconf close-session scripts/service_provisioning/PROV_SC_02/PROV_SC_02_script.txt 0 → 100644 +14 −0 Original line number Diff line number Diff line # PROV_C_02_script.txt for Lightweight NETCONF controlleur lncc.py 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 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_creation.xml.pyformat --mappings COMMON NE_SPECIFIC netconf edit-config --target running --config-template svlan_registration_creation.xml.pyformat --mappings COMMON NE_SPECIFIC # For untagged: cvlan_creation_untagged_pvid.xml.pyformat netconf close-session scripts/service_provisioning/PROV_SC_02/README.md 0 → 100644 +29 −0 Original line number Diff line number Diff line # PROV_SC_02 service-provisioning test The _PROV_SC_02_script.txt_ script should provision S-VLAN service, based on "Provider Edge Bridge". As per agreements during call, this test is **Optional**: Only vendors which want to participates. ```console $ python3 lncc.py "run_script PROV_SC_02_script.txt" ``` Edit the mappings for each NE: | Parameter | Example value | |----------------|---------------| | bridge_name | Bridge-1 | | component_name | Component-1 | | svid | 201 | | svlan_name | VLAN-201 | | port1_portref | 1 | | port2_portref | 3 | | port1_name | eth0 | | cvid1 | 101 | | cvlan1_name | VLAN-102 | | cvid2 | 102 | | cvlan2_name | VLAN-102 | Example: `{bridge_name: Bridge-1, component_name: Component-1, svid: 201, svlan_name: VLAN-201, port1_portref: 1, port2_portref: 3, cvid1: 101, cvlan1_name: VLAN-101, cvid2: 102, cvlan2_name: VLAN-102}` ## Deletion scripts/service_provisioning/PROV_SC_02/svlan_creation.xml.pyformat 0 → 100644 +38 −0 Original line number Diff line number Diff line <?xml version="1.0"?> <config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <bridges xmlns="urn:ieee:std:802.1Q:yang:ieee802-dot1q-bridge"> <bridge> <name>{bridge_name}</name> <component> <name>{component_name}</name> <bridge-vlan> <vlan> <vid>{svid}</vid> <name>{svlan_name}</name> </vlan> </bridge-vlan> <filtering-database> <vlan-registration-entry> <database-id>1</database-id> <vids>{svid}</vids> <entry-type>static</entry-type> <port-map> <port-ref>{port1_portref}</port-ref> <static-vlan-registration-entries> <registrar-admin-control>fixed-new-ignored</registrar-admin-control> <vlan-transmitted>untagged</vlan-transmitted> </static-vlan-registration-entries> </port-map> <port-map> <port-ref>{port2_portref}</port-ref> <static-vlan-registration-entries> <registrar-admin-control>fixed-new-ignored</registrar-admin-control> <vlan-transmitted>tagged</vlan-transmitted> </static-vlan-registration-entries> </port-map> </vlan-registration-entry> </filtering-database> </component> </bridge> </bridges> </config> scripts/service_provisioning/PROV_SC_02/svlan_creation_untagged_pvid.xml.pyformat 0 → 100644 +11 −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"> <pvid>{vid}</pvid> </bridge-port> </interface> </interfaces> </nc:config> Loading
scripts/service_provisioning/PROV_SC_02/PROV_SC_02_deletion_script.txt 0 → 100644 +13 −0 Original line number Diff line number Diff line # PROV_C_01_deletion_script.txt for Lightweight NETCONF controlleur lncc.py 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 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 COMMON NE_SPECIFIC netconf edit-config --target running --config-template svlan_registration_deletion.xml.pyformat --mappings COMMON NE_SPECIFIC netconf close-session
scripts/service_provisioning/PROV_SC_02/PROV_SC_02_script.txt 0 → 100644 +14 −0 Original line number Diff line number Diff line # PROV_C_02_script.txt for Lightweight NETCONF controlleur lncc.py 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 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_creation.xml.pyformat --mappings COMMON NE_SPECIFIC netconf edit-config --target running --config-template svlan_registration_creation.xml.pyformat --mappings COMMON NE_SPECIFIC # For untagged: cvlan_creation_untagged_pvid.xml.pyformat netconf close-session
scripts/service_provisioning/PROV_SC_02/README.md 0 → 100644 +29 −0 Original line number Diff line number Diff line # PROV_SC_02 service-provisioning test The _PROV_SC_02_script.txt_ script should provision S-VLAN service, based on "Provider Edge Bridge". As per agreements during call, this test is **Optional**: Only vendors which want to participates. ```console $ python3 lncc.py "run_script PROV_SC_02_script.txt" ``` Edit the mappings for each NE: | Parameter | Example value | |----------------|---------------| | bridge_name | Bridge-1 | | component_name | Component-1 | | svid | 201 | | svlan_name | VLAN-201 | | port1_portref | 1 | | port2_portref | 3 | | port1_name | eth0 | | cvid1 | 101 | | cvlan1_name | VLAN-102 | | cvid2 | 102 | | cvlan2_name | VLAN-102 | Example: `{bridge_name: Bridge-1, component_name: Component-1, svid: 201, svlan_name: VLAN-201, port1_portref: 1, port2_portref: 3, cvid1: 101, cvlan1_name: VLAN-101, cvid2: 102, cvlan2_name: VLAN-102}` ## Deletion
scripts/service_provisioning/PROV_SC_02/svlan_creation.xml.pyformat 0 → 100644 +38 −0 Original line number Diff line number Diff line <?xml version="1.0"?> <config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <bridges xmlns="urn:ieee:std:802.1Q:yang:ieee802-dot1q-bridge"> <bridge> <name>{bridge_name}</name> <component> <name>{component_name}</name> <bridge-vlan> <vlan> <vid>{svid}</vid> <name>{svlan_name}</name> </vlan> </bridge-vlan> <filtering-database> <vlan-registration-entry> <database-id>1</database-id> <vids>{svid}</vids> <entry-type>static</entry-type> <port-map> <port-ref>{port1_portref}</port-ref> <static-vlan-registration-entries> <registrar-admin-control>fixed-new-ignored</registrar-admin-control> <vlan-transmitted>untagged</vlan-transmitted> </static-vlan-registration-entries> </port-map> <port-map> <port-ref>{port2_portref}</port-ref> <static-vlan-registration-entries> <registrar-admin-control>fixed-new-ignored</registrar-admin-control> <vlan-transmitted>tagged</vlan-transmitted> </static-vlan-registration-entries> </port-map> </vlan-registration-entry> </filtering-database> </component> </bridge> </bridges> </config>
scripts/service_provisioning/PROV_SC_02/svlan_creation_untagged_pvid.xml.pyformat 0 → 100644 +11 −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"> <pvid>{vid}</pvid> </bridge-port> </interface> </interfaces> </nc:config>