# PROV_C_02_script.txt for Lightweight NETCONF controlleur lncc.py

set feedback_to_output true
ne load ne.yaml
mapping add COMMON '{svid1: 201, svlan1_name: VLAN-201, svid2: 202, svlan2_name: VLAN-202}'

mapping add NE_SPECIFIC --ne my_ne1 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 1, port2_portref: 2, port3_portref: 3}'
mapping add NE_SPECIFIC --ne my_ne2 '{bridge_name: Bridge-1, component_name: Component-1, port1_portref: 1, port2_portref: 2, port3_portref: 3}'

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