Page MenuHomeVyOS Platform

Adopt WireGuard configuration script to new vyos.ifconfig class
Closed, ResolvedPublicFEATURE REQUEST


Instead of generating the interface configuration commands by hand, make use of vyos.ifconfig like it is done in bridge, loopback, dummy and soon bonding interface.

While doing this transition it should also be made use of the VYOS_TAGNODE_VALUE environment variable so the script is only run for the specified tag node and not on all tag nodes.

This results in only the interface which had changes in the CLI will be changed. All other WireGuard interfaces are not processed.


Difficulty level
Hard (possibly days)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Internal change (not visible to end users)

Event Timeline

c-po triaged this task as Normal priority.
c-po created this task.
c-po changed Difficulty level from Unknown (require assessment) to Normal (likely a few hours).

That will be a complete rewrite, since the interface name is now readable via VYOS_TAGNODE_VALUE, that affects get_config() quite a lot and will reduce the number of code line significantly. The flip side of the coin is, that the current code was running pretty reliable, so I will release small updates while adopting to see if I break anything configure outside of my test environment.

hagbard changed Difficulty level from Normal (likely a few hours) to Hard (possibly days).Sep 3 2019, 6:12 PM
erkin set Issue type to Internal change (not visible to end users).Aug 31 2021, 6:52 PM