Page MenuHomeVyOS Platform

show interfaces wireguard wg0 summary
Open, NormalPublicBUG

Description

oli@firewall:~$ show version 
Version:          VyOS 1.5-rolling-202501290006
Release train:    current
Release flavor:   generic

Built by:         [email protected]
Built on:         Wed 29 Jan 2025 00:06 UTC
Build UUID:       aeeb7fe8-743e-44d4-bbc6-688ded519c99
Build commit ID:  16f9226b1f8696

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest
Secure Boot:      n/a (BIOS)

Hardware vendor:  QEMU
Hardware model:   Standard PC (i440FX + PIIX, 1996)
Hardware S/N:     
Hardware UUID:    d153072d-d5cc-4ac2-9f5e-276548c4a072

Copyright:        VyOS maintainers and contributors
oli@firewall:~$ show interfaces wireguard wg0 summary 
Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/interfaces_wireguard.py", line 48, in <module>
    res = vyos.opmode.run(sys.modules[__name__])
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/opmode.py", line 312, in run
    res = func(**args)
          ^^^^^^^^^^^^
  File "/usr/libexec/vyos/op_mode/interfaces_wireguard.py", line 35, in _wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/libexec/vyos/op_mode/interfaces_wireguard.py", line 43, in show_summary
    return intf.operational.show_interface()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'WireGuardOperational' object has no attribute 'show_interface'. Did you mean: 'set_interface'?
oli@firewall:~$ show interfaces 
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface    IP Address        MAC                VRF        MTU  S/L    Description
-----------  ----------------  -----------------  -------  -----  -----  --------------
eth0         10.0.1.254/24     bc:24:11:7b:37:f9  default   1450  u/u    devnet
eth1         192.168.1.252/24  bc:24:11:0c:0d:82  default   1500  u/u    home
eth2         10.0.10.254/24    bc:24:11:9b:34:5d  default   1450  u/u    vlan10
lo           127.0.0.1/8       00:00:00:00:00:00  default  65536  u/u
             ::1/128
wg0          10.100.1.2/30     n/a                default   1420  u/u    vpn to router2

Shows as a possible completion but throws this error

Details

Version
VyOS 1.5-rolling-202501290006
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav triaged this task as Normal priority.Sun, Feb 2, 8:28 AM

same issue on 1.5-rolling-202502130006

vyos@vyos# run show interfaces wireguard wg0
wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000
    link/none
    inet 10.10.0.1/24 brd 10.10.0.255 scope global wg0
       valid_lft forever preferred_lft forever
    inet6 fe80::f4d1:45ff:feb8:435/64 scope link
       valid_lft forever preferred_lft forever
    Description: hk wg over wss

    RX:       bytes  packets  errors  dropped  overrun       mcast
         3260336356  3531213       0        0        0           0
    TX:       bytes  packets  errors  dropped  carrier  collisions
          468449528  2010163       0        0        0           0
[edit]
vyos@vyos# run show interfaces wireguard wg0 summary
Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/interfaces_wireguard.py", line 48, in <module>
    res = vyos.opmode.run(sys.modules[__name__])
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/opmode.py", line 312, in run
    res = func(**args)
          ^^^^^^^^^^^^
  File "/usr/libexec/vyos/op_mode/interfaces_wireguard.py", line 35, in _wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/libexec/vyos/op_mode/interfaces_wireguard.py", line 43, in show_summary
    return intf.operational.show_interface()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'WireGuardOperational' object has no attribute 'show_interface'. Did you mean: 'set_interface'?