Page MenuHomeVyOS Platform

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

Description

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 interface-wireguard.py 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.

Details

Version
-
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Internal change (not visible to end users)

Event Timeline

c-po assigned this task to hagbard.
c-po triaged this task as Normal priority.
c-po edited a custom field.

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.

erkin set Issue type to Internal change (not visible to end users).Aug 31 2021, 6:52 PM