diff options
author | Daniil Baturin <daniil@vyos.io> | 2023-11-03 17:02:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-03 17:02:51 +0000 |
commit | 8391fb5f2c3db32a925f23c3df4fa08d4980c252 (patch) | |
tree | 0a219712b8a5f179433584109de6280e5e1c1d8e /python/vyos/ifconfig/wireguard.py | |
parent | a327526240c9d9f42930e9a1ce871e9fa8036258 (diff) | |
parent | ecdb142f3c60bd30601289a0397104eb6afd3a55 (diff) | |
download | vyos-1x-8391fb5f2c3db32a925f23c3df4fa08d4980c252.tar.gz vyos-1x-8391fb5f2c3db32a925f23c3df4fa08d4980c252.zip |
Merge pull request #2433 from vyos/mergify/bp/sagitta/pr-2431
wireguard: T5707: remove previously deconfigured peer (backport #2431)
Diffstat (limited to 'python/vyos/ifconfig/wireguard.py')
-rw-r--r-- | python/vyos/ifconfig/wireguard.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/python/vyos/ifconfig/wireguard.py b/python/vyos/ifconfig/wireguard.py index 4aac103ec..5704f8b64 100644 --- a/python/vyos/ifconfig/wireguard.py +++ b/python/vyos/ifconfig/wireguard.py @@ -167,11 +167,6 @@ class WireGuardIf(Interface): interface setup code and provide a single point of entry when workin on any interface. """ - # remove no longer associated peers first - if 'peer_remove' in config: - for peer, public_key in config['peer_remove'].items(): - self._cmd(f'wg set {self.ifname} peer {public_key} remove') - tmp_file = NamedTemporaryFile('w') tmp_file.write(config['private_key']) tmp_file.flush() |