summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorsskaje <sskaje@gmail.com>2024-11-20 03:40:34 +0800
committerGitHub <noreply@github.com>2024-11-19 21:40:34 +0200
commit2419c2f42b12604aac6ac2e32bac977e91ae8bc0 (patch)
treef6a20cbb6e9c81fc77cd2647b5b6d7407d21f105 /python
parent8f76c96cb4d7132b7654aa5f37e8ab49fa2e137a (diff)
downloadvyos-1x-2419c2f42b12604aac6ac2e32bac977e91ae8bc0.tar.gz
vyos-1x-2419c2f42b12604aac6ac2e32bac977e91ae8bc0.zip
T6490: Allow creation of wireguard interfaces without requiring peers (#4194)
* T6490: Allow creation of wireguard interfaces without requiring peers
Diffstat (limited to 'python')
-rw-r--r--python/vyos/ifconfig/wireguard.py3
1 files changed, 3 insertions, 0 deletions
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