Page MenuHomeVyOS Platform

Tunnel Commit Failed if system does not have `eth0`
Closed, ResolvedPublicBUG

Description

vyos.ifconfig: T3860: bugfix in get_mac_synthetic()

Bring bug, when the system does not have eth0 available, commit will crash.

The source code

# Get system eth0 base MAC address - every system has eth0
eth0_mac = Interface('eth0').get_mac()

Possible fix plan:
Get the mac address base on the system exist interface, not the eth0.

Details

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

Event Timeline

c-po triaged this task as High priority.
c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po changed Why the issue appeared? from Will be filled on close to Design mistake.
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
c-po moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus (1.3.0-epa2) board.