Page MenuHomeVyOS Platform

Virtual ethernet interfaces do not correctly check for the missing peer option
Closed, ResolvedPublicBUG

Description

If forget add second peer depends

set interfaces virtual-ethernet veth0 address 192.168.59.2/24
set interfaces virtual-ethernet veth1 address dhcp
set interfaces virtual-ethernet veth1 peer-name veth0

missed

set interfaces virtual-ethernet veth0 peer-name veth1

error occurred:

vyos@vyos# commit
[ interfaces virtual-ethernet veth0 ]
Traceback (most recent call last):
  File "/usr/libexec/vyos/services/vyos-configd", line 145, in run_script
    script.verify(c)
  File "/usr/libexec/vyos//conf_mode/interfaces_virtual-ethernet.py", line 79, in verify
    if veth['other_interfaces'][peer_name]['peer_name'] != ifname:
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'peer_name'
[[interfaces virtual-ethernet veth0]] failed
[ interfaces virtual-ethernet veth1 ]
Remote peer name must be set for "veth1"!
[[interfaces virtual-ethernet veth1]] failed
Commit failed

Details

Version
VyOS 2025.11.14-0020-rolling
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav triaged this task as Normal priority.Mon, Nov 17, 4:42 PM
dmbaturin renamed this task from Virtual-Ethernet wrong setup error to Virtual ethernet interfaces do not correctly check for the missing peer option.Thu, Dec 4, 8:49 PM
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
dmbaturin changed Issue type from Cosmetic issue (typos etc.) to Bug (incorrect behavior).