Create template for WireGuard VPNCONN
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Tue, 3 Mar 2026 12:22:36 +0000 (13:22 +0100)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 4 Mar 2026 12:48:27 +0000 (13:48 +0100)
commit0196c402fc9b37a48ad54f61da6fa9f0551f887d
tree88956420ac888f844d7e0b034f2c00a4e52310cf
parentd2e31cef8f7770c27614534292592269f528eea5
Create template for WireGuard VPNCONN

WireGuard VPN connections have so many different cnfvars when compared
to IPSec vpns, that we create a different template for them. The
"vpnconn" function uses the VPNCONN_PROTO to decide which of the two
templates it should use.

Also add two fully functional wireguard vpnconns to test config
(a roadwarrior and a site-to-site) including interface, own keys and
foreign keys.

This is the first step in cleaning up vpn connection creation in QA.
The new functionality is not used there, yet, but can be easily be
triggered in the future to simplify vpnconn creation.
src/cnfvar/templates.py
test/cnfvar/cnfs.cnf