# 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 SIAE-01 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 4, port2_portref: 9, port1_name: eth4}'
mapping add NE_SPECIFIC --ne SIAE-02 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 4, port2_portref: 9, port1_name: eth4}'

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
