summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig/control.py
diff options
context:
space:
mode:
authorsskaje <sskaje@gmail.com>2024-12-31 10:44:01 +0800
committerChristian Breunig <christian@breunig.cc>2025-01-19 00:17:12 +0100
commit2212a438b234f34f32e08efef2f841ba55a3b6a0 (patch)
tree47528dafb6733efb134a5ceee51e52118be7896f /python/vyos/ifconfig/control.py
parent4d3e976271e30d70c8b2660d869a220de98d8c59 (diff)
downloadveeos-1x-2212a438b234f34f32e08efef2f841ba55a3b6a0.tar.gz
veeos-1x-2212a438b234f34f32e08efef2f841ba55a3b6a0.zip
wireguard: T4930: allow peers via FQDN
* set interfaces wireguard wgXX peer YY hostname <fqdn>
Diffstat (limited to 'python/vyos/ifconfig/control.py')
-rw-r--r--python/vyos/ifconfig/control.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/ifconfig/control.py b/python/vyos/ifconfig/control.py
index 7402da55a..a886c1b9e 100644
--- a/python/vyos/ifconfig/control.py
+++ b/python/vyos/ifconfig/control.py
@@ -48,7 +48,7 @@ class Control(Section):
def _popen(self, command):
return popen(command, self.debug)
- def _cmd(self, command):
+ def _cmd(self, command, env=None):
import re
if 'netns' in self.config:
# This command must be executed from default netns 'ip link set dev X netns X'
@@ -61,7 +61,7 @@ class Control(Section):
command = command
else:
command = f'ip netns exec {self.config["netns"]} {command}'
- return cmd(command, self.debug)
+ return cmd(command, self.debug, env=env)
def _get_command(self, config, name):
"""