Page MenuHomeVyOS Platform

Executing "show bridge vni" throws an exception.
Open, LowPublic

Description

Dear Vyos experts:

Here is my system version:

vyos@vyos:~$ **show version**
Version:          VyOS 1.5-rolling-202407280023
Release train:    current
Release flavor:   generic

Built by:         [email protected]
Built on:         Sun 28 Jul 2024 02:52 UTC
Build UUID:       7ea3ff52-c494-47e0-bda8-61627c52418f
Build commit ID:  d9b1177b78f474

Architecture:     x86_64
Boot via:         installed image
System type:      bare metal

Hardware vendor:  CncTion
Hardware model:   N4100-4L
Hardware S/N:     Default string
Hardware UUID:    03000200-0400-0500-0006-000700080009

Copyright:        VyOS maintainers and contributors

and this is the exception I got :

vyos@vyos:~$ **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 271, 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
}

and I also tried :

vyos@vyos:~$ **sudo bridge --json vni show**
RTNETLINK answers: Operation not supported
Dump ternminated

other commands return a json output without issue:

vyos@vyos:~$ sudo bridge --json mdb  show
[{"mdb":[],"router":{}}]

I didn't use any VNI related settings, just happened to come across this exception. It seems like the "bridge --json vni show" command isn't working properly?

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

opswill created this object in space S1 VyOS Public.
opswill added a project: Restricted Project.Thu, Oct 24, 4:45 AM

I am sorry I just found another task with same issue, https://vyos.dev/T6770, Please close this task.

vyosbot added a project: Restricted Project.Thu, Oct 24, 6:08 AM