# PROV_C_01_script.txt for Lightweight NETCONF controller lncc.py

set feedback_to_output true
ne load ne.yaml
mapping add COMMON '{vid: 101, vlan_name: VLAN-101}'

mapping add NE_SPECIFIC --ne SIAE-01 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 4, port2_portref: 9}'
mapping add NE_SPECIFIC --ne SIAE-02 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 4, port2_portref: 9}'

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