title: XENAPI VLAN not getting flown to slave node if created on master node
body: <p>I am trying to create a VLAN on host from xenapi python library. VLAN is getting created by following way,</p>
  
  <pre><code>&gt;&gt;&gt; network = session.xenapi.network.create({'name_label': 'VLAN1280', 'name_description': 'VLAN1280', 'other_config': {}, 'bridge': '', 'MTU': '1500'})
  &gt;&gt;&gt; pif = session.xenapi.PIF.get_by_uuid("a733dc21-4e9e-9a13-0ba6-8cf1db29a985")
  &gt;&gt;&gt; vlan = session.xenapi.VLAN.create(pif, "1280", network)
  </code></pre>
  
  <p>Session is only getting created for masternode as xenapi does not allow to connect to slave node.</p>
  
  <p>By the above code snippet, VLAN is getting created only on Master Node.
  <a href="https://i.stack.imgur.com/eu6xf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eu6xf.png" alt="Image of vlan created on master node with VLAN and NIC attached."></a></p>
  
  <p>However, this does not getting flown to slave node with VLAN tag and NIC information. only NETWORK name is getting reflected but not NIC and VLAN information.
  <a href="https://i.stack.imgur.com/wuDjn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wuDjn.png" alt="Image of VLAN created with improper information of NIC and VLAN tag."></a></p>
  
  <p>I'd like to mention, when we try to create a VLAN network from xencenter application, it is getting created on master node as well on slave node with proper information.</p>
  
  <p>Can someone please guide me/help me out for this issue?</p>