diff --git a/scripts/service_provisioning/PROV_SC_02/PROV_SC_02_deletion_script.txt b/scripts/service_provisioning/PROV_SC_02/PROV_SC_02_deletion_script.txt new file mode 100644 index 0000000000000000000000000000000000000000..eaa3c10b21eec1c3ae7a427dd870cf681abdd917 --- /dev/null +++ b/scripts/service_provisioning/PROV_SC_02/PROV_SC_02_deletion_script.txt @@ -0,0 +1,13 @@ +# 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 diff --git a/scripts/service_provisioning/PROV_SC_02/PROV_SC_02_script.txt b/scripts/service_provisioning/PROV_SC_02/PROV_SC_02_script.txt new file mode 100644 index 0000000000000000000000000000000000000000..6232418d22e195a180e707be6f55201834c0c21d --- /dev/null +++ b/scripts/service_provisioning/PROV_SC_02/PROV_SC_02_script.txt @@ -0,0 +1,14 @@ +# 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 diff --git a/scripts/service_provisioning/PROV_SC_02/README.md b/scripts/service_provisioning/PROV_SC_02/README.md new file mode 100644 index 0000000000000000000000000000000000000000..920841d19396bc0c0ef8e177015e2d50eecc061e --- /dev/null +++ b/scripts/service_provisioning/PROV_SC_02/README.md @@ -0,0 +1,29 @@ +# 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 diff --git a/scripts/service_provisioning/PROV_SC_02/svlan_creation.xml.pyformat b/scripts/service_provisioning/PROV_SC_02/svlan_creation.xml.pyformat new file mode 100644 index 0000000000000000000000000000000000000000..fdb9467554fdd497ede1cf7c9ac0a85bdc7065a5 --- /dev/null +++ b/scripts/service_provisioning/PROV_SC_02/svlan_creation.xml.pyformat @@ -0,0 +1,38 @@ + + + + + {bridge_name} + + {component_name} + + + {svid} + {svlan_name} + + + + + 1 + {svid} + static + + {port1_portref} + + fixed-new-ignored + untagged + + + + {port2_portref} + + fixed-new-ignored + tagged + + + + + + + + diff --git a/scripts/service_provisioning/PROV_SC_02/svlan_creation_untagged_pvid.xml.pyformat b/scripts/service_provisioning/PROV_SC_02/svlan_creation_untagged_pvid.xml.pyformat new file mode 100644 index 0000000000000000000000000000000000000000..5f7f845cb74e620191c1e01e63ff9f29c4973696 --- /dev/null +++ b/scripts/service_provisioning/PROV_SC_02/svlan_creation_untagged_pvid.xml.pyformat @@ -0,0 +1,11 @@ + + + + + {port1_name} + + {vid} + + + + diff --git a/scripts/service_provisioning/PROV_SC_02/svlan_deletion.xml.pyformat b/scripts/service_provisioning/PROV_SC_02/svlan_deletion.xml.pyformat new file mode 100644 index 0000000000000000000000000000000000000000..a88cfae8a968e64c01ffa428f32f8cba4cead973 --- /dev/null +++ b/scripts/service_provisioning/PROV_SC_02/svlan_deletion.xml.pyformat @@ -0,0 +1,22 @@ + + + + + {bridge_name} + + {component_name} + + + 1 + {svid} + + + + + {svid} + + + + + + diff --git a/scripts/service_provisioning/PROV_SC_02/svlan_registration_creation.xml.pyformat b/scripts/service_provisioning/PROV_SC_02/svlan_registration_creation.xml.pyformat new file mode 100644 index 0000000000000000000000000000000000000000..49c86ce67b982637dae2b94489978aeea019a849 --- /dev/null +++ b/scripts/service_provisioning/PROV_SC_02/svlan_registration_creation.xml.pyformat @@ -0,0 +1,22 @@ + + + + + {port1_name} + + + {cvid1} + {svid} + false + false + + + {cvid2} + {svid} + false + false + + + + + diff --git a/scripts/service_provisioning/PROV_SC_02/svlan_registration_deletion.xml.pyformat b/scripts/service_provisioning/PROV_SC_02/svlan_registration_deletion.xml.pyformat new file mode 100644 index 0000000000000000000000000000000000000000..22d88d0b2d1d3ac5f2fea1a03e539ef5b8f1ea25 --- /dev/null +++ b/scripts/service_provisioning/PROV_SC_02/svlan_registration_deletion.xml.pyformat @@ -0,0 +1,16 @@ + + + + + {port1_name} + + + {cvid1} + + + {cvid2} + + + + + diff --git a/xml-examples/service_provisioning/3_provider_edge_bridge/6_cvlan_registration_creation_request.xml b/xml-examples/service_provisioning/3_provider_edge_bridge/6_cvlan_registration_creation_request.xml index d8da283af1a80eccc44174fc029fa820a0fa9bd1..522e03aa4973f1d6f63809d776c3cf515c3eaa6a 100644 --- a/xml-examples/service_provisioning/3_provider_edge_bridge/6_cvlan_registration_creation_request.xml +++ b/xml-examples/service_provisioning/3_provider_edge_bridge/6_cvlan_registration_creation_request.xml @@ -20,4 +20,4 @@ - \ No newline at end of file +