Page MenuHomeVyOS Platform

Bonding interfaces cannot be disabled
Closed, ResolvedPublic

Description

Disabling bonded interfaces is broken:

[email protected]# show interfaces bonding bond2
 address dhcp
 description "DL: L::cr01b-vyos.int bond2 | R::ir01.int Po1.21 (FIOS)"
 hash-policy layer3+4
 member {
     interface eth4
     interface eth5
 }
 mode xor-hash
 vrf FIOS
[email protected]# set interfaces bonding bond2 disable
[edit]
[email protected]# commit
Using source address fd52:d62e:8011:6e:192:168:15:4
[edit]
[email protected]# 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: L::cr01b-vyos.int
                                                        DL: L::cr01b-vyos.int |
                                                        DL: L::cr01b-vyos.int |
                                                        DL: L::cr01b-vyos.int |
                                                        DL: L::cr01b-vyos.int |
[edit]

Details

Difficulty level
Unknown (require assessment)
Version
1.3-rolling-202006241940
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.

[email protected]:~$ show conf com | match eth1
set interfaces ethernet eth1 address 'dhcp'
set interfaces ethernet eth1 disable
[email protected]:~$ show int
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth1             192.168.100.227/24                u/u

https://phabricator.vyos.net/T2163

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.