Pure text data we must to pass to vn.allocate() and other functions

Hi there!

I’ve got a question about usage a template passing to the vn.allocate() function.
I have a Nebula 6.2.0.1 and use PyONE as a Python developer )

So, I found just a single example here, in the forum and one more in the internet from the old Nebula ( OpenNebula 5.10 Integration Guide) p. 111.

I have the next data trying to pass to that function in order to create a VN (see below).

Does anybody know why I’ve got HTTP 501 with “<Fault -501: ‘Not enough parameters’>” error
from the Nebula server?

Thank you in advance.

PS
Do we have a guide with variable definition we must pass to some API functions?
Also, I’ll be glad to discuss here the pure text data we have to pass to some Nebula API.

template =f’‘’
NAME = “My VN”
VN_MAD = vxlan
PHYDEV = brv1110
BRIDGE_TYPE = linux
GATEWAY = 192.168.0.1
DNS = “192.168.79.1 172.31.104.24 172.31.104.25 172.31.104.26”
AR = [
TYPE = IP4,
IP = 192.168.0.1,
SIZE = 255,
MASK = 255.255.255.0,
GATEWAY = 192.168.0.1,
DNS = “192.168.79.1 172.31.104.24 172.31.104.25 172.31.104.26”,
NETWORK_ADDRESS = 192.168.0.0
]
‘’’
vnet = self.one().vn.allocate(template)

Solution found: Virtual Network Template — OpenNebula 6.8.3 documentation