1.5: Show interface wireguard wg05 summary not working rolling release 2025-02-16

Hello, i think there maybe a bug in the last release:

vyos@stronghold:~$ show interfaces wireguard wg05
Possible completions:
Execute the current command
allowed-ips Show all IP addresses allowed for the specified interface
endpoints Show all endpoints for the specified interface
event-log Show network interface change event log
peers Show all peer IDs for the specified interface
public-key Show interface public-key
summary Shows current configuration and device information

vyos@stronghold:~$ show interfaces wireguard wg05 summary
Traceback (most recent call last):
File “/usr/libexec/vyos/op_mode/interfaces_wireguard.py”, line 48, in
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()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Thanks

Does show interfaces show you wg05 with no issues?
I’ll test this myself and see what I find.
Can you be clear when you say the “latest release” exactly what version of VyOS you’re running?
Thanks!

Hello,

no problem running :
vyos@stronghold:~$ show interfaces wireguard wg05
wg05: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000
link/none
inet ….scope global wg05
valid_lft forever preferred_lft forever
inet6 …. scope link
valid_lft forever preferred_lft forever
Description: Stronghold ↔ Lothal

RX:       bytes  packets  errors  dropped  overrun       mcast
     1981340536  1534114       0        0        0           0
TX:       bytes  packets  errors  dropped  carrier  collisions
      243175032   726627       0        0        0           0

vyos@stronghold:~$

I’m using 1.5 rolling release of 16 february 2025.

Thanks

1 Like

The task is already in forge T7123

1 Like

Raised here also

1 Like

Hello, just update to the last rolling release: 20250222, i got another error:

vyos@shieldgate:~$ show interfaces wireguard wg05
wg05: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000
link/none
inet *** scope global wg05
valid_lft forever preferred_lft forever
inet6 **** scope link
valid_lft forever preferred_lft forever
Description: Lothal ↔ Stronghold

RX:     bytes  packets  errors  dropped  overrun       mcast
     21734160    34413       0        0        0           0
TX:     bytes  packets  errors  dropped  carrier  collisions
      3209772    25621       0        0        0           0

vyos@shieldgate:~$ show interfaces wireguard wg05 summary
Traceback (most recent call last):
File “/usr/libexec/vyos/op_mode/interfaces_wireguard.py”, line 48, in
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()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/vyos/ifconfig/wireguard.py”, line 121, in show_interface
delta = timedelta(
^^^^^^^^^
NameError: name ‘timedelta’ is not defined

Hello,
I got the same issue. I rolled back to 202501200007, that works perfect.

Please test in the latest rolling release.

1 Like

Works great in the last rolling release.

Thanks!!!

Works here as well! Great, thank you very much!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.