Hey guys, i'm currently working on a little scrip to make deploying lxc's quicker and i'm having some issues getting pvesh to set vlan tags, according to the api documentation its done via ",trunks=<vlanid>" but in execution of this it seems to get missed.
The networking string i'm using within the python script is
Am i being stupid, missing something or what? everything else is working bar the vlan tagging.
Add/solved:
It turns out that tags=<vlanid> works but trunks=<vlanid> stated in the documentation does not.
The networking string i'm using within the python script is
Code:
'pvesh set /nodes/%s/lxc/%d/config -net0 bridge=vmbr0,ip=%s,gw=%s,name=eth0,type=veth,trunks=2' % (nodeid, vmid2, networkingipaddr2, networkinggw2)
Add/solved:
It turns out that tags=<vlanid> works but trunks=<vlanid> stated in the documentation does not.
Last edited: