Page MenuHomeVyOS Platform

A number of bugs with wireguard script due to interface rearrangement
Closed, ResolvedPublicBUG

Description

list_interfaces.py displayed this error when trying to predict interfaces

wireguard.py failed with errors.

admin@edge:/usr/lib$ show interfaces wireguard Traceback (most recent call last):
  File "/usr/libexec/vyos/completion/list_interfaces.py", line 5, in <module>
    import vyos.interfaces
  File "/usr/lib/python3/dist-packages/vyos/interfaces.py", line 19, in <module>
    from vyos.ifconfig import Interface
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/__init__.py", line 27, in <module>
    from vyos.ifconfig.wireguard import WireGuardIf
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/wireguard.py", line 21, in <module>
    from vyos.interfaces import wireguard_dump
ImportError: cannot import name 'wireguard_dump' from 'vyos.interfaces' (/usr/lib/python3/dist-packages/vyos/interfaces.py)

Details

Difficulty level
Easy (less than an hour)
Version
1.3
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

If this is a duplicate of something, go ahead and close it

erkin renamed this task from Number of bugs with wireguard script due to interface rearrangement. to A number of bugs with wireguard script due to interface rearrangement.Aug 30 2021, 7:53 AM
erkin set Issue type to Bug (incorrect behavior).
erkin removed a subscriber: Active contributors.