Commit 4c5fb103 authored by Jean Rebiffe's avatar Jean Rebiffe
Browse files

Merge branch 'rebiffe-main-patch-17958' into 'main'

PVID provisioning

See merge request sdn/mwt/mwt-sdn-plugtests-4-materials!12
parents 6fc21322 4b0c0b65
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
# 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

+4 −2
Original line number Diff line number Diff line
# 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
+4 −0
Original line number Diff line number Diff line
@@ -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

+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>