i'm trying to create a bonded interface with the proxmox api. eg.
pvesh create nodes/NODE/network --iface=bond0 --type=bond --bond_mode=802.3ad --bond_xmit_hash_policy=layer2+3 --autostart=1 --slaves='eno1 eno2'.
this creates...
auto bond0
iface bond0 inet manual
bond-slaves eno1 eno2
bond-miimon 100
bond-mode 802.3ad
bond-xmit-hash-policy layer2+3
but this automatically sets the physical interfaces to 'auto' as well...
auto eno2
iface eno2 inet manual
auto eno1
iface eno1 inet manual
but this seems to cause the bond to not capture the slaves ...
cat /sys/class/net/bond0/bonding/slaves
<empty>
it works when i manually edit and remove the 'auto enoX' lines and restart the network (systemctl restart networking)
i tried using the api to disable autostart, but it doesnt work...
pvesh set nodes/NODE/network/eno1 --type=eth --autostart=0
pvesh create nodes/NODE/network --iface=bond0 --type=bond --bond_mode=802.3ad --bond_xmit_hash_policy=layer2+3 --autostart=1 --slaves='eno1 eno2'.
this creates...
auto bond0
iface bond0 inet manual
bond-slaves eno1 eno2
bond-miimon 100
bond-mode 802.3ad
bond-xmit-hash-policy layer2+3
but this automatically sets the physical interfaces to 'auto' as well...
auto eno2
iface eno2 inet manual
auto eno1
iface eno1 inet manual
but this seems to cause the bond to not capture the slaves ...
cat /sys/class/net/bond0/bonding/slaves
<empty>
it works when i manually edit and remove the 'auto enoX' lines and restart the network (systemctl restart networking)
i tried using the api to disable autostart, but it doesnt work...
pvesh set nodes/NODE/network/eno1 --type=eth --autostart=0