Page MenuHomeVyOS Platform

show dhcp client leases fails to complete
Closed, InvalidPublicBUG

Description

As reported in: https://forum.vyos.io/t/error-show-dhcp-lease/12030

Verified to be broken in VyOS 1.4-rolling-202308310021:

vyos@vyos:~$ show dhcp client leases
Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/dhcp.py", line 386, 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/dhcp.py", line 382, in show_client_leases
    return _get_formatted_client_leases(lease_data, family=family)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/libexec/vyos/op_mode/dhcp.py", line 341, in _get_formatted_client_leases
    from vyos.validate import is_intf_addr_assigned
ModuleNotFoundError: No module named 'vyos.validate'

Details

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

Event Timeline

Apachez created this task.

See this task instead: https://vyos.dev/T5536