Loading scripts/service_provisioning/PROV_C_01/PROV_C_01_deletion_script.txt +4 −2 Original line number Diff line number Diff line Loading @@ -2,8 +2,10 @@ set feedback_to_output true ne load ne.yaml mapping add bridge --ne ne1 '{bridge_name: Bridge-1, component_name: Component-1, vid: 101, vlan_name: VLAN-101, port1_portref: 1, port2_portref: 3}' mapping add bridge --ne ne2 'XXXX' mapping add COMMON '{vid: 101, vlan_name: VLAN-101}' mapping add NE_SPECIFIC --ne my_ne1 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 1, port2_portref: 3}' mapping add NE_SPECIFIC --ne my_ne2 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 1, port2_portref: 3}' connect netconf edit-config --target running --config-template cvlan_deletion.xml.pyformat --mappings bridge Loading scripts/service_provisioning/PROV_C_01/PROV_C_01_script.txt +5 −3 Original line number Diff line number Diff line Loading @@ -2,9 +2,11 @@ set feedback_to_output true ne load ne.yaml mapping add bridge --ne ne1 '{bridge_name: Bridge-1, component_name: Component-1, vid: 101, vlan_name: VLAN-101, port1_portref: 1, port2_portref: 3}' mapping add bridge --ne ne2 'XXXX' mapping add COMMON '{vid: 101, vlan_name: VLAN-101}' mapping add NE_SPECIFIC --ne my_ne1 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 1, port2_portref: 3}' mapping add NE_SPECIFIC --ne my_ne2 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 1, port2_portref: 3}' connect netconf edit-config --target running --config-template cvlan_creation.xml.pyformat --mappings bridge netconf edit-config --target running --config-template cvlan_creation.xml.pyformat --mappings COMMON NE_SPECIFIC netconf close-session scripts/service_provisioning/PROV_C_01/PROV_C_01_untagged_script.txt +5 −3 Original line number Diff line number Diff line Loading @@ -2,10 +2,12 @@ set feedback_to_output true ne load ne.yaml mapping add bridge --ne ne1 '{bridge_name: Bridge-1, component_name: Component-1, vid: 101, vlan_name: VLAN-101, port1_portref: 1, port2_portref: 3}' mapping add bridge --ne ne2 'XXXX' mapping add COMMON '{vid: 102, vlan_name: VLAN-102}' mapping add NE_SPECIFIC --ne my_ne1 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 2, port2_portref: 3}' mapping add NE_SPECIFIC --ne my_ne2 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 2, port2_portref: 3}' connect netconf edit-config --target running --config-template cvlan_creation_untagged.xml.pyformat --mappings bridge netconf edit-config --target running --config-template cvlan_creation_untagged.xml.pyformat --mappings COMMON NE_SPECIFIC netconf close-session scripts/service_provisioning/PROV_C_01/README.md +16 −1 Original line number Diff line number Diff line Loading @@ -11,8 +11,23 @@ Edit the mappings for each NE: |----------------|---------------| | bridge_name | Bridge-1 | | component_name | Component-1 | | vlan_name | Bridge-1 | | vid | 101 | | vlan_name | VLAN-101 | | port1_portref | 1 | | port2_portref | 3 | Example: `{bridge_name: Bridge-1, component_name: Component-1, vid: 101, vlan_name: VLAN-101, port1_portref: 1, port2_portref: 3}` ## Untagged creation The same apply for _PROV_C_01_untagged_script.txt_ ```console $ python3 lncc.py "run_script PROV_C_01_untagged_script.txt" ``` ## deletion ```console $ python3 lncc.py "run_script PROV_C_01_deletion_script.txt" ``` Loading
scripts/service_provisioning/PROV_C_01/PROV_C_01_deletion_script.txt +4 −2 Original line number Diff line number Diff line Loading @@ -2,8 +2,10 @@ set feedback_to_output true ne load ne.yaml mapping add bridge --ne ne1 '{bridge_name: Bridge-1, component_name: Component-1, vid: 101, vlan_name: VLAN-101, port1_portref: 1, port2_portref: 3}' mapping add bridge --ne ne2 'XXXX' mapping add COMMON '{vid: 101, vlan_name: VLAN-101}' mapping add NE_SPECIFIC --ne my_ne1 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 1, port2_portref: 3}' mapping add NE_SPECIFIC --ne my_ne2 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 1, port2_portref: 3}' connect netconf edit-config --target running --config-template cvlan_deletion.xml.pyformat --mappings bridge Loading
scripts/service_provisioning/PROV_C_01/PROV_C_01_script.txt +5 −3 Original line number Diff line number Diff line Loading @@ -2,9 +2,11 @@ set feedback_to_output true ne load ne.yaml mapping add bridge --ne ne1 '{bridge_name: Bridge-1, component_name: Component-1, vid: 101, vlan_name: VLAN-101, port1_portref: 1, port2_portref: 3}' mapping add bridge --ne ne2 'XXXX' mapping add COMMON '{vid: 101, vlan_name: VLAN-101}' mapping add NE_SPECIFIC --ne my_ne1 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 1, port2_portref: 3}' mapping add NE_SPECIFIC --ne my_ne2 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 1, port2_portref: 3}' connect netconf edit-config --target running --config-template cvlan_creation.xml.pyformat --mappings bridge netconf edit-config --target running --config-template cvlan_creation.xml.pyformat --mappings COMMON NE_SPECIFIC netconf close-session
scripts/service_provisioning/PROV_C_01/PROV_C_01_untagged_script.txt +5 −3 Original line number Diff line number Diff line Loading @@ -2,10 +2,12 @@ set feedback_to_output true ne load ne.yaml mapping add bridge --ne ne1 '{bridge_name: Bridge-1, component_name: Component-1, vid: 101, vlan_name: VLAN-101, port1_portref: 1, port2_portref: 3}' mapping add bridge --ne ne2 'XXXX' mapping add COMMON '{vid: 102, vlan_name: VLAN-102}' mapping add NE_SPECIFIC --ne my_ne1 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 2, port2_portref: 3}' mapping add NE_SPECIFIC --ne my_ne2 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 2, port2_portref: 3}' connect netconf edit-config --target running --config-template cvlan_creation_untagged.xml.pyformat --mappings bridge netconf edit-config --target running --config-template cvlan_creation_untagged.xml.pyformat --mappings COMMON NE_SPECIFIC netconf close-session
scripts/service_provisioning/PROV_C_01/README.md +16 −1 Original line number Diff line number Diff line Loading @@ -11,8 +11,23 @@ Edit the mappings for each NE: |----------------|---------------| | bridge_name | Bridge-1 | | component_name | Component-1 | | vlan_name | Bridge-1 | | vid | 101 | | vlan_name | VLAN-101 | | port1_portref | 1 | | port2_portref | 3 | Example: `{bridge_name: Bridge-1, component_name: Component-1, vid: 101, vlan_name: VLAN-101, port1_portref: 1, port2_portref: 3}` ## Untagged creation The same apply for _PROV_C_01_untagged_script.txt_ ```console $ python3 lncc.py "run_script PROV_C_01_untagged_script.txt" ``` ## deletion ```console $ python3 lncc.py "run_script PROV_C_01_deletion_script.txt" ```