Hello,
We are creating networks through the API but we can’t find which parameter we must pass to have VLAN_ID_AUTOMATIC=1
. This parameter is not explained in the documentation, only that:
The VLAN id will be the same for every interface in a given network, calculated automatically by OpenNebula. It may also be forced by specifying an VLAN_ID parameter in the Virtual Network template.
NAME="test-dad"
VN_MAD="ovswitch"
BRIDGE = "nebula"
This results in:
<VNET>
<ID>5</ID>
<UID>0</UID>
<GID>0</GID>
<UNAME>oneadmin</UNAME>
<GNAME>oneadmin</GNAME>
<NAME>test-dad</NAME>
<PERMISSIONS>
<OWNER_U>1</OWNER_U>
<OWNER_M>1</OWNER_M>
<OWNER_A>0</OWNER_A>
<GROUP_U>0</GROUP_U>
<GROUP_M>0</GROUP_M>
<GROUP_A>0</GROUP_A>
<OTHER_U>0</OTHER_U>
<OTHER_M>0</OTHER_M>
<OTHER_A>0</OTHER_A>
</PERMISSIONS>
<CLUSTERS>
<ID>0</ID>
</CLUSTERS>
<BRIDGE><![CDATA[vswitch]]></BRIDGE>
<PARENT_NETWORK_ID/>
<VN_MAD><![CDATA[ovswitch]]></VN_MAD>
<PHYDEV/>
<VLAN_ID/>
<VLAN_ID_AUTOMATIC>0</VLAN_ID_AUTOMATIC>
<USED_LEASES>0</USED_LEASES>
<VROUTERS/>
<TEMPLATE>
<BRIDGE><![CDATA[vswitch]]></BRIDGE>
<PHYDEV><![CDATA[]]></PHYDEV>
<SECURITY_GROUPS><![CDATA[0]]></SECURITY_GROUPS>
<VN_MAD><![CDATA[ovswitch]]></VN_MAD>
</TEMPLATE>
<AR_POOL/>
</VNET>
I tested on 5.0.2 and 5.2.1, it looks like a bug, can you confirm before I open one?
Regards.