Page MenuHomeVyOS Platform

bridge: can not delete member interface CLI option when VLAN is enabled
Closed, ResolvedPublicBUG


Bug discovered while working on T4565

To Reproduce

set interfaces bridge br0 enable-vlan
set interfaces bridge br0 member interface eth1 allowed-vlan '10'
set interfaces bridge br0 vif 10 address ''
[email protected]# show interfaces
 bridge br0 {
     member {
         interface eth1 {
             allowed-vlan 10
     vif 10 {
[email protected]# delete interfaces bridge br0 member
[email protected]# commit
[ interfaces bridge br0 ]
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:
- Make sure you are running the latest version of VyOS available at:
- Consult the community forum to see how to handle this issue:
- Join us on Slack where our users exchange help and advice:

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:      2022-07-30 19:22:56
Image version:    VyOS 1.3.1-S1
Release train:    equuleus

Built by:         Sentrium S.L.
Built on:         Mon 28 Mar 2022 08:49 UTC
Build UUID:       b831fa04-a4bd-4a3a-a888-0cf7d778be01
Build commit ID:  bfd58ad202462f

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

Hardware vendor:  VMware, Inc.
Hardware model:   VMware Virtual Platform
Hardware S/N:     VMware-42 33 79 fe 73 64 2d 62-d5 62 ab 99 5a 3e d9 6d
Hardware UUID:    fe793342-6473-622d-d562-ab995a3ed96d

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/", line 171, in <module>
  File "/usr/libexec/vyos/conf_mode/", line 162, in apply
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 292, in update
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 52, in _cmd
    return cmd(command, self.debug)
  File "/usr/lib/python3/dist-packages/vyos/", line 161, in cmd
    raise OSError(code, feedback)
OSError: [Errno 255] failed to run command: bridge vlan add dev br0 vid 10 self
exit code: 255

cmd 'bridge vlan add dev br0 vid 10 self'
returned (out):

returned (err):
RTNETLINK answers: Invalid argument

[[interfaces bridge br0]] failed
Commit failed


Difficulty level
Normal (likely a few hours)
1.3.1-S1 1.4-rolling
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)