title: How to first disassociate and then associate specific VLANs in Network Gateway vsrx
body: <p>I am disassociating a specific VLAN [VLAN ID 2634795 which is route around] from the Network Gateway vsrx using API</p>
  
  <p>func (r Network_Gateway_Vlan) DeleteObjects(templateObjects []datatypes.Network_Gateway_Vlan) (resp bool, err error) </p>
  
  <p>then immediately I am associating multiple VLANs which also include [VLAN ID 2634795 route through]to the Network Gateway vsrx using API </p>
  
  <p>func (r Network_Gateway_Vlan) CreateObjects(templateObjects []datatypes.Network_Gateway_Vlan) (resp []datatypes.Network_Gateway_Vlan, err error)</p>
  
  <p>Sometimes I am getting error </p>
  
  <p>Unable to create association:\n - \nSoftLayer_Exception_Public: VLAN ID 2634795 is an inside VLAN for gateway</p>