# 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


