From 2419c2f42b12604aac6ac2e32bac977e91ae8bc0 Mon Sep 17 00:00:00 2001 From: sskaje Date: Wed, 20 Nov 2024 03:40:34 +0800 Subject: T6490: Allow creation of wireguard interfaces without requiring peers (#4194) * T6490: Allow creation of wireguard interfaces without requiring peers --- python/vyos/ifconfig/wireguard.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python') diff --git a/python/vyos/ifconfig/wireguard.py b/python/vyos/ifconfig/wireguard.py index 9030b1302..cccac361d 100644 --- a/python/vyos/ifconfig/wireguard.py +++ b/python/vyos/ifconfig/wireguard.py @@ -195,6 +195,9 @@ class WireGuardIf(Interface): base_cmd += f' private-key {tmp_file.name}' base_cmd = base_cmd.format(**config) + # T6490: execute command to ensure interface configured + self._cmd(base_cmd) + if 'peer' in config: for peer, peer_config in config['peer'].items(): # T4702: No need to configure this peer when it was explicitly -- cgit v1.2.3