Page MenuHomeVyOS Platform

Traceback on adding interface to bridge with configured ip address
Open, Requires assessmentPublicBUG

Description

Commands to reproduce:

set interfaces bridge br0 member interface eth1.10
set interfaces ethernet eth1 vif 10 address 100.64.0.1/24
commit

Traceback:

vyos@vyos# commit

Can not add interface "eth1.10" to bridge, it has an address assigned!

[[interfaces bridge br0]] failed
[ interfaces ethernet eth1 ]
VyOS had an issue completing a command.

We are sorry that you encountered a problem while using VyOS.
There are a few things you can do to help us (and yourself):
- Contact us using the online help desk if you have a subscription:
  https://support.vyos.io/
- Make sure you are running the latest version of VyOS available at:
  https://vyos.net/get/
- Consult the community forum to see how to handle this issue:
  https://forum.vyos.io
- Join us on Slack where our users exchange help and advice:
  https://vyos.slack.com

When reporting problems, please include as much information as possible:
- do not obfuscate any data (feel free to contact us privately if your 
  business policy requires it)
- and include all the information presented below

Report time:      2021-11-15 15:25:21
Image version:    VyOS 1.4-rolling-202111150317
Release train:    sagitta

Built by:         autobuild@vyos.net
Built on:         Mon 15 Nov 2021 03:17 UTC
Build UUID:       0275648c-c4fe-4497-9e59-859f38c01725
Build commit ID:  22a1b786c3c17c

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest

Hardware vendor:  QEMU
Hardware model:   Standard PC (i440FX + PIIX, 1996)
Hardware S/N:     
Hardware UUID:    024d0f96-39e7-4757-843d-a782aaa9b9c0

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/interfaces-ethernet.py", line 198, in <module>
    verify(c)
  File "/usr/libexec/vyos/conf_mode/interfaces-ethernet.py", line 147, in verify
    verify_vlan_config(ethernet)
  File "/usr/lib/python3/dist-packages/vyos/configverify.py", line 315, in verify_vlan_config
    verify_address(vlan)
  File "/usr/lib/python3/dist-packages/vyos/configverify.py", line 216, in verify_address
    'Cannot assign address to interface "{ifname}" as it is a '
KeyError: 'ifname'

noteworthy:
cmd 'ethtool --show-pause eth1'
returned (out):

returned (err):
netlink error: Operation not supported

[[interfaces ethernet eth1]] failed
Commit failed
[edit]

Details

Difficulty level
Normal (likely a few hours)
Version
1.4-rolling-202111150317
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)