Page MenuHomeVyOS Platform

Bonding interface mode allows malformed variations of 802.3ad
Closed, ResolvedPublicBUG

Description

The regex for validating bonding interface mode uses an unescapted dot in 802.3ad, which means it's interpreted as "any character" rather than a literate dot, so it's possible to set the mode to something like 802%3ad and the typo will remain hidden until the user commits.

vyos@dmbaturin-vpn-gw# set interfaces bonding bond0 mode 802.4ad # typo s/3/4/ ­— caught immediately
  
  mode must be 802.3ad, active-backup, broadcast, round-robin, transmit-load-balance, adaptive-load-balance, or xor
  Value validation failed
  Set failed

[edit]
vyos@dmbaturin-vpn-gw# set interfaces bonding bond0 mode 802%3ad

<NO ERROR>

Details

Version
1.4.0
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav changed the task status from Open to In progress.May 20 2025, 9:39 AM
Viacheslav assigned this task to dmbaturin.
Viacheslav triaged this task as Normal priority.
dmbaturin moved this task from Open to Finished on the VyOS 1.5 Circinus board.
dmbaturin moved this task from Need Triage to Completed on the VyOS Rolling board.