proxmox API : disable interface from autostarting

Hyien

Member
Jun 18, 2021
95
2
13
34
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!