diff options
| author | Christian Breunig <christian@breunig.cc> | 2023-08-17 21:53:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-17 21:53:50 +0200 |
| commit | 49f25c568c91750e06bb982ae0321d4448fbddbb (patch) | |
| tree | f3a48a845e03603a4c4fff8913bc82f1b230e375 /python/vyos/ifconfig/wireguard.py | |
| parent | 214d0d4933e90cbe9440280d916f069b9db463fc (diff) | |
| parent | 6bd061100ae43bc3a8319408f5123ec9bde3f2b8 (diff) | |
| download | veeos-1x-49f25c568c91750e06bb982ae0321d4448fbddbb.tar.gz veeos-1x-49f25c568c91750e06bb982ae0321d4448fbddbb.zip | |
Merge pull request #2130 from aapostoliuk/T5409-sagitta
wireguard: T5409: Added 'set interfaces wireguard wgX threaded'
Diffstat (limited to 'python/vyos/ifconfig/wireguard.py')
| -rw-r--r-- | python/vyos/ifconfig/wireguard.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/ifconfig/wireguard.py b/python/vyos/ifconfig/wireguard.py index fe5e9c519..4aac103ec 100644 --- a/python/vyos/ifconfig/wireguard.py +++ b/python/vyos/ifconfig/wireguard.py @@ -1,4 +1,4 @@ -# Copyright 2019-2022 VyOS maintainers and contributors <maintainers@vyos.io> +# Copyright 2019-2023 VyOS maintainers and contributors <maintainers@vyos.io> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -25,6 +25,7 @@ from hurry.filesize import alternative from vyos.ifconfig import Interface from vyos.ifconfig import Operational from vyos.template import is_ipv6 +from vyos.base import Warning class WireGuardOperational(Operational): def _dump(self): @@ -184,7 +185,6 @@ class WireGuardIf(Interface): base_cmd += f' private-key {tmp_file.name}' base_cmd = base_cmd.format(**config) - if 'peer' in config: for peer, peer_config in config['peer'].items(): # T4702: No need to configure this peer when it was explicitly |
