Page MenuHomeVyOS Platform

VyOS 1.5-rolling-202503020018: show interfaces wireguard wg0 summary - NameError: name 'timedelta' is not defined
Closed, ResolvedPublicBUG

Description

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()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/wireguard.py", line 121, in show_interface
    delta = timedelta(
            ^^^^^^^^^
NameError: name 'timedelta' is not defined

Details

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

Event Timeline

I am running on VyOS 1.5-rolling-202503030030 , and this error has fixed

Viacheslav changed the task status from Open to Needs reporter action.Wed, Mar 5, 11:00 AM
Viacheslav triaged this task as Normal priority.

Is resolved in VyOS 2025.03.05-0017-rolling.

Viacheslav claimed this task.