Page MenuHomeVyOS Platform

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

Description

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 '172.16.33.99/24'
[email protected]# show interfaces
 bridge br0 {
     enable-vlan
     member {
         interface eth1 {
             allowed-vlan 10
         }
     }
     vif 10 {
         address 172.16.33.99/24
     }
 }
[email protected]# delete interfaces bridge br0 member
[edit]
[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:
  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:      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/interfaces-bridge.py", line 171, in <module>
    apply(c)
  File "/usr/libexec/vyos/conf_mode/interfaces-bridge.py", line 162, in apply
    br.update(bridge)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/bridge.py", line 292, in update
    self._cmd(cmd)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 52, in _cmd
    return cmd(command, self.debug)
  File "/usr/lib/python3/dist-packages/vyos/util.py", line 161, in cmd
    raise OSError(code, feedback)
OSError: [Errno 255] failed to run command: bridge vlan add dev br0 vid 10 self
returned:
exit code: 255

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

returned (err):
RTNETLINK answers: Invalid argument

[[interfaces bridge br0]] failed
Commit failed
[edit]

Details

Difficulty level
Normal (likely a few hours)
Version
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)