API: Create VNET with VXLAN


#1

Hi,

According with documentation, 3 fields are mandatory for create a VNET with VXLAN: NAME, VN_MAD and PHYDEV. But if you not specify vlan information happen a error:

$ cat vnet_template
NAME=“net_test”
PHYDEV=“bond1”
VN_MAD=“vxlan”

$ onevnet create vnet_template
[one.vn.allocate] VLAN_ID (or AUTOMATIC) is mandatory for driver vxlan

I solved my problem adding AUTOMATIC_VLAN_ID=“YES” in template. Wouldn’t it be the case to update the documentation?