Page MenuHomeVyOS Platform

Bonding interfaces cannot be disabled
Closed, ResolvedPublic


Disabling bonded interfaces is broken:

trae@cr01b-vyos# show interfaces bonding bond2
 address dhcp
 description "DL: bond2 | Po1.21 (FIOS)"
 hash-policy layer3+4
 member {
     interface eth4
     interface eth5
 mode xor-hash
 vrf FIOS
trae@cr01b-vyos# set interfaces bonding bond2 disable
trae@cr01b-vyos# commit
Using source address fd52:d62e:8011:6e:192:168:15:4
trae@cr01b-vyos# run show interfaces bonding bond2 brief 
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
bond2            -                                 u/u  DL:
                                                        DL: |
                                                        DL: |
                                                        DL: |
                                                        DL: |


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

Can regression testing of some sort be added for this? I've seen this issue crop up before now, so I would guess this is a good candidate for that if possible.

The problem not in the bonding.
Any interface with DHCP address can't be disabled.

vyos@r-roll:~$ show conf com | match eth1
set interfaces ethernet eth1 address 'dhcp'
set interfaces ethernet eth1 disable
vyos@r-roll:~$ show int
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth1                   u/u

Must be fixed after T2653 - then there is only a single truth for all interfaces

Works as expected in latest rolling: 1.3-rolling-20200724

75: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 00:50:56:bf:ef:aa brd ff:ff:ff:ff:ff:ff
c-po claimed this task.
erkin renamed this task from Disabling Bonded Interfaces Broken to Bonding interfaces cannot be disabled.Aug 29 2021, 2:07 PM
erkin set Issue type to Unspecified (please specify).
erkin changed Issue type from Unspecified (please specify) to Bug (incorrect behavior).
erkin removed a subscriber: Active contributors.