On the most recent rolling release (and I believe every release even back to RC10), any bonded interfaces that is set to disabled will still be enabled on boot. Here's an example:
Here's what I started with:
vyos@cr02-vyos:~$ show interfaces bonding bond1 bond1: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 52:54:00:bb:99:6a brd ff:ff:ff:ff:ff:ff inet 1.1.1.1/18 brd 255.255.255.255 scope global bond1 valid_lft forever preferred_lft forever inet6 fe80::5054:ff:febb:996a/64 scope link valid_lft forever preferred_lft forever Description: Time Warner Cable WAN RX: bytes packets errors dropped overrun mcast 873289326 1664619 0 0 0 0 TX: bytes packets errors dropped carrier collisions 49164758 246615 0 0 0 0
I disabled the interface and saved:
vyos@cr02-vyos:~$ configure [edit] vyos@cr02-vyos# set interfaces bonding bond1 disable [edit] vyos@cr02-vyos# commit [edit] vyos@cr02-vyos# save Saving configuration to '/config/config.boot'... Done [edit] vyos@cr02-vyos# exit exit
I checked to verify that it is indeed disabled and rebooted:
vyos@cr02-vyos:~$ show interfaces bonding bond1 bond1: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether 52:54:00:bb:99:6a brd ff:ff:ff:ff:ff:ff Description: Time Warner Cable WAN RX: bytes packets errors dropped overrun mcast 896965638 1732172 0 0 0 0 TX: bytes packets errors dropped carrier collisions 54675630 255524 0 0 0 0 vyos@cr02-vyos:~$ reboot Are you sure you want to reboot this system? [y/N] y packet_write_wait: Connection to UNKNOWN port 65535: Broken pipe
Lo and behold, it is still enabled on boot, but it shows as being disabled in the config:
vyos@cr02-vyos:~$ show configuration commands | grep 'bonding bond1 disable' set interfaces bonding bond1 disable vyos@cr02-vyos:~$ show interfaces bonding bond1 bond1: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 52:54:00:bb:99:6a brd ff:ff:ff:ff:ff:ff inet6 fe80::5054:ff:febb:996a/64 scope link valid_lft forever preferred_lft forever Description: Time Warner Cable WAN RX: bytes packets errors dropped overrun mcast 8331930 138027 0 0 0 0 TX: bytes packets errors dropped carrier collisions 746 7 0 0 0 0