Page MenuHomeVyOS Platform

Bonding interface - Status up based on LACP state
Open, NormalPublicFEATURE REQUEST

Description

Summary
When using bonding interfaces in LACP mode, the status of the interface remains up as long as any member has active physical link.
It is desired that bond interace is considered as up, only if LACP is up

Example on current implementation

vyos@vyos:~$ show int
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface    IP Address        MAC                VRF        MTU  S/L    Description
-----------  ----------------  -----------------  -------  -----  -----  -------------
bond0        198.51.100.2/24   2a:15:9f:cc:bf:bd  default   1500  u/u
eth0         -                 2a:15:9f:cc:bf:bd  default   1500  u/u
eth1         -                 2a:15:9f:cc:bf:bd  default   1500  u/u
eth2         192.168.77.17/24  50:00:00:06:00:02  default   1500  u/u
lo           127.0.0.1/8       00:00:00:00:00:00  default  65536  u/u
             ::1/128
vyos@vyos:~$ show config comm | grep bond
set interfaces bonding bond0 address '198.51.100.2/24'
set interfaces bonding bond0 member interface 'eth0'
set interfaces bonding bond0 member interface 'eth1'

Interfaces eth0 and eth1 connected to another router, switch or whatever, where no LACP is configured.
And bond0 info shows:

vyos@vyos:~$ cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v6.6.93-amd64-vyos

Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0

802.3ad info
LACP active: on
LACP rate: slow
Min links: 0
Aggregator selection policy (ad_select): stable

Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 50:00:00:06:00:00
Slave queue ID: 0
Aggregator ID: 2
Actor Churn State: churned
Partner Churn State: churned
Actor Churned Count: 1
Partner Churned Count: 1

Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 50:00:00:06:00:01
Slave queue ID: 0
Aggregator ID: 1
Actor Churn State: none
Partner Churn State: churned
Actor Churned Count: 0
Partner Churned Count: 1
vyos@vyos:~$

So LACP is down, and bond0 is still considered up.

Details

Version
-
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)