Page MenuHomeVyOS Platform

Traceback on adding interface to bridge with configured ip address
Closed, ResolvedPublicBUG

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:         [email protected]
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)

Event Timeline

Unknown Object (User) created this task.Nov 15 2021, 3:26 PM
Viacheslav edited projects, added VyOS 1.3 Equuleus (1.3.6); removed VyOS 1.4 Sagitta.
Viacheslav added a subscriber: Viacheslav.

Fixed and not actual bug for 1.5:

vyos@r4# set interfaces bridge br0 member interface eth1.10
[edit]
vyos@r4# set interfaces ethernet eth1 vif 10 address 100.64.0.1/24
[edit]
vyos@r4# commit
[ interfaces ethernet eth1 ]
Cannot assign address to interface "eth1.10" as it is a member of bridge
"br0"!

[[interfaces ethernet eth1]] failed
Commit failed
[edit]
vyos@r4#

But still bug for 1.3.5

vyos@r1# set interfaces bridge br0 member interface eth1.10
[edit]
vyos@r1# set interfaces ethernet eth1 vif 10 address 100.64.0.1/24
[edit]
vyos@r1# commit
[ interfaces bridge br0 ]
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.


Report time:      2024-01-20 11:56:08
Image version:    VyOS 1.3.5
Release train:    equuleus

Built by:         Sentrium S.L.
Built on:         Mon 04 Dec 2023 21:36 UTC
Build UUID:       c459bdc8-b253-4e7d-af80-d21e91402e20
Build commit ID:  d5f3d5002ffbe9

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

Hardware vendor:  QEMU
Hardware model:   Standard PC (Q35 + ICH9, 2009)
Hardware S/N:     
Hardware UUID:    504a981d-6fb3-49ca-8a43-c28326992bd4

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/interfaces-ethernet.py", line 163, in <module>
    verify(c)
  File "/usr/libexec/vyos/conf_mode/interfaces-ethernet.py", line 130, in verify
    verify_vlan_config(ethernet)
  File "/usr/lib/python3/dist-packages/vyos/configverify.py", line 314, in verify_vlan_config
    verify_address(vlan)
  File "/usr/lib/python3/dist-packages/vyos/configverify.py", line 206, in verify_address
    interface = config['ifname']
KeyError: 'ifname'

noteworthy:
cmd 'ethtool --show-pause eth1'
returned (out):
Pause parameters for eth1:
returned (err):
Cannot get device pause settings: Operation not supported

[[interfaces ethernet eth1]] failed
Commit failed
[edit]
vyos@r1#