Page MenuHomeVyOS Platform

ethernet speed/duplex can never be switched back to auto/auto
Closed, ResolvedPublicBUG

Description

Reported by @mbosner via Slack.

After bootup VyOS will initialize the card with autoneg if not otherwise specified on the CLI.

If a user now issues:

set interfaces ethernet eth7 speed 40000
set interfaces ethernet eth7 duplex full

The setting is applied to the card if supported by the underlaying hardware.

When we now switch back to auto neg mode

set interfaces ethernet eth7 speed auto
set interfaces ethernet eth7 duplex auto

We will see on the debug logs:

DEBUG/IFCONFIG NIC driver does not support changing speed/duplex settings!

This is because the combination auto/auto is not on the default "allow list"

Details

Difficulty level
Easy (less than an hour)
Version
1.4-rolling-202202110630
Why the issue appeared?
Implementation mistake
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Related Objects

Mentioned In
1.3.1

Event Timeline

c-po created this task.
c-po triaged this task as High priority.
c-po changed Why the issue appeared? from Will be filled on close to Implementation mistake.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus ( 1.3.1) board.
c-po moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.