okay will make the required changes. I want to clarify one thing if adding vlan id to the NIC needs to be followed by deploying that vlan id onto the switch. 
Or would it be more cleaner to do the following:
1> first add all the vlan ids to the NIC  (vm.node.add_nic(vlan_id) ) 
2> start the node
3> deploy the vlan id's to switch