Page MenuHomeVyOS Platform

op command run show bridge vni is broken
Open, LowPublicBUG

Description

without any specific bridge config

vyos@vyos# run show bridge vni
Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/bridge.py", line 288, in <module>
    res = vyos.opmode.run(sys.modules[__name__])
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/opmode.py", line 263, in run
    res = func(**args)
          ^^^^^^^^^^^^
  File "/usr/libexec/vyos/op_mode/bridge.py", line 253, in show_vni
    bridge_vni = _get_raw_data_vni()
                 ^^^^^^^^^^^^^^^^^^^
  File "/usr/libexec/vyos/op_mode/bridge.py", line 61, in _get_raw_data_vni
    json_data = cmd(f'bridge --json vni show')
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/utils/process.py", line 155, in cmd
    raise OSError(code, feedback)
PermissionError: [Errno 1] failed to run command: bridge --json vni show
returned: [
exit code: 1

reproduced on:

VyOS 1.5-rolling-202409160007
VyOS 1.4-stable-202409170309

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.4-stable-202409170309
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)