# PROV_SC_01_deletion_script-SIAE-201.txt for Lightweight NETCONF controller lncc.py

set feedback_to_output true
ne load ne.yaml
mapping add COMMON '{vid: 201}'

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

connect
netconf edit-config --target running --config-template svlan_deletion.xml.pyformat --mappings COMMON NE_SPECIFIC
sleep 1
mapping add VLAN_SPECIFIC1 '{port1_name: eth4, cvid: 101}'
netconf edit-config --target running --config-template svlan_mapping_deletion.xml.pyformat --mappings VLAN_SPECIFIC1 NE_SPECIFIC

sleep 1
mapping add VLAN_SPECIFIC2 '{port1_name: eth4, cvid: 102}'
netconf edit-config --target running --config-template svlan_mapping_deletion.xml.pyformat --mappings VLAN_SPECIFIC2 NE_SPECIFIC
netconf close-session
