diff options
| author | sskaje <sskaje@gmail.com> | 2024-12-31 10:44:01 +0800 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2025-01-19 00:17:12 +0100 |
| commit | 2212a438b234f34f32e08efef2f841ba55a3b6a0 (patch) | |
| tree | 47528dafb6733efb134a5ceee51e52118be7896f /python/vyos/ifconfig/control.py | |
| parent | 4d3e976271e30d70c8b2660d869a220de98d8c59 (diff) | |
| download | veeos-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.py | 4 |
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): """ |
