Commit 88c07ce7 authored by Jean Rebiffe's avatar Jean Rebiffe
Browse files

Update scripts/service_provisioning/PROV_C_01/PROV_C_01_script.txt,...

Update scripts/service_provisioning/PROV_C_01/PROV_C_01_script.txt, scripts/service_provisioning/PROV_C_01/README.md, scripts/inventory/INV_HW_01/README.md, scripts/service_provisioning/PROV_C_01/cvlan_creation.xml.pyformat
parent 2b24a3a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
# INV_HW_01

The _INV_HW_01_script.txt_ script should product the inventory for hardware components of ietf-hardware module ([RFC8348](https://datatracker.ietf.org/doc/html/rfc8348)).
The _INV_HW_01_script.txt_ script should product the NEs inventory using ietf-system module ([RFC7317](https://datatracker.ietf.org/doc/html/rfc7317)).

```console
$ python3 lncc.py "run_script INV_HW_01_script.txt"
+13 −0
Original line number Diff line number Diff line
# set_tx_power_script.txt for Lightweight NETCONF controlleur lncc.py
# run using: lncc.py 'run_script set_tx_power_script.txt' quit

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'

connect
netconf edit-config --target running --config-template cvlan_creation.xml.pyformat --mappings bridge
netconf close-session

+18 −0
Original line number Diff line number Diff line
# MWT SDN Plugtests 4 materials

The _PROV_C_01_script.txt_ script should provision C-VLAN service, based on "Customer Bridge".

```console
$ python3 lncc.py "run_script PROV_C_01_script.txt"
```

Edit the mappings for each NE:
|   Parameter    | Example value |
|----------------|---------------|
| bridge_name    | Bridge-1      |
| component_name | Component-1   |
| vlan_name      | Bridge-1      |
| 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}`
+36 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<dot1q:bridges xmlns:dot1q="urn:ieee:std:802.1Q:yang:ieee802-dot1q-bridge">
    <dot1q:bridge>
        <dot1q:name>{bridge_name}</dot1q:name>
        <dot1q:component>
            <dot1q:name>{component_name}</dot1q:name>
            <dot1q:bridge-vlan>
                <dot1q:vlan>
                    <dot1q:vid>{vid}</dot1q:vid>
                    <dot1q:name>{vlan_name}</dot1q:name>
                </dot1q:vlan>
            </dot1q:bridge-vlan>
            <dot1q:filtering-database>
                <dot1q:vlan-registration-entry>
                    <dot1q:database-id>1</dot1q:database-id>
                    <dot1q:vids>{vid}</dot1q:vids>
                    <dot1q:entry-type>static</dot1q:entry-type>
                    <dot1q:port-map>
                        <dot1q:port-ref>{port1_portref}</dot1q:port-ref>
                        <dot1q:static-vlan-registration-entries>
                            <dot1q:registrar-admin-control>fixed-new-ignored</dot1q:registrar-admin-control>
                            <dot1q:vlan-transmitted>tagged</dot1q:vlan-transmitted>
                        </dot1q:static-vlan-registration-entries>
                    </dot1q:port-map>
                    <dot1q:port-map>
                        <dot1q:port-ref>{port2_portref}</dot1q:port-ref>
                        <dot1q:static-vlan-registration-entries>
                            <dot1q:registrar-admin-control>fixed-new-ignored</dot1q:registrar-admin-control>
                            <dot1q:vlan-transmitted>tagged</dot1q:vlan-transmitted>
                        </dot1q:static-vlan-registration-entries>
                    </dot1q:port-map>
                </dot1q:vlan-registration-entry>
            </dot1q:filtering-database>
        </dot1q:component>
    </dot1q:bridge>
</dot1q:bridges>