diff --git a/scripts/service_provisioning/PROV_C_01/PROV_C_01_untagged_plus_pvid_script.txt b/scripts/service_provisioning/PROV_C_01/PROV_C_01_untagged_plus_pvid_script.txt new file mode 100644 index 0000000000000000000000000000000000000000..d35e2393f6b8645083f59fcfedc3d17e1d584fd4 --- /dev/null +++ b/scripts/service_provisioning/PROV_C_01/PROV_C_01_untagged_plus_pvid_script.txt @@ -0,0 +1,17 @@ +# PROV_C_01_script.txt for Lightweight NETCONF controlleur lncc.py + +# For vendors which does requires PVID (cvlan_creation_untagged_interfacepvid.xml.pyformat) + +set feedback_to_output true +ne load ne.yaml +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, port1_name: 2, port2_portref: 3}' +mapping add NE_SPECIFIC --ne my_ne2 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 2, port1_name: 2, port2_portref: 3}' + +connect +netconf edit-config --target running --config-template cvlan_creation_untagged.xml.pyformat --mappings COMMON NE_SPECIFIC +netconf edit-config --target running --config-template cvlan_creation_untagged_interfacepvid.xml.pyformat --mappings COMMON NE_SPECIFIC +netconf close-session + + diff --git a/scripts/service_provisioning/PROV_C_01/PROV_C_01_untagged_script.txt b/scripts/service_provisioning/PROV_C_01/PROV_C_01_untagged_script.txt index 3bd4be19e287fa72522447acbfc8553d0de3311d..4bb77993de3c7b4e75e6b98fe7f80d2d6145d9b6 100644 --- a/scripts/service_provisioning/PROV_C_01/PROV_C_01_untagged_script.txt +++ b/scripts/service_provisioning/PROV_C_01/PROV_C_01_untagged_script.txt @@ -1,11 +1,13 @@ # PROV_C_01_script.txt for Lightweight NETCONF controlleur lncc.py +# For vendors which doesnt requires PVID (cvlan_creation_untagged_interfacepvid.xml.pyformat) + set feedback_to_output true ne load ne.yaml 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}' +mapping add NE_SPECIFIC --ne my_ne1 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 2, port1_name: 2, port2_portref: 3}' +mapping add NE_SPECIFIC --ne my_ne2 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 2, port1_name: 2, port2_portref: 3}' connect netconf edit-config --target running --config-template cvlan_creation_untagged.xml.pyformat --mappings COMMON NE_SPECIFIC diff --git a/scripts/service_provisioning/PROV_C_01/README.md b/scripts/service_provisioning/PROV_C_01/README.md index 2dfbc2329ac4875b06729ba9b65c806048f55e2f..e32ab83b89ecb33fdb881d9e6524f21bfe93dca5 100644 --- a/scripts/service_provisioning/PROV_C_01/README.md +++ b/scripts/service_provisioning/PROV_C_01/README.md @@ -25,6 +25,10 @@ The same apply for _PROV_C_01_untagged_script.txt_ ```console $ python3 lncc.py "run_script PROV_C_01_untagged_script.txt" ``` +Provisioing of unttaged require one more paramater: +| Parameter | Example value | +|----------------|---------------| +| port1_portref | port1_name | ## Deletion diff --git a/scripts/service_provisioning/PROV_C_01/cvlan_creation_untagged_interfacepvid.xml.pyformat b/scripts/service_provisioning/PROV_C_01/cvlan_creation_untagged_interfacepvid.xml.pyformat new file mode 100644 index 0000000000000000000000000000000000000000..5f7f845cb74e620191c1e01e63ff9f29c4973696 --- /dev/null +++ b/scripts/service_provisioning/PROV_C_01/cvlan_creation_untagged_interfacepvid.xml.pyformat @@ -0,0 +1,11 @@ + + + + + {port1_name} + + {vid} + + + +