diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-03 18:00:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-03 18:00:20 +0100 |
commit | d8a71978b4628e30b25346f4ff690e8705020408 (patch) | |
tree | 60d43f2b41468000479165c1fcc4ac96b7232230 /python | |
parent | 031a5c8a1b1a0d31d7ecf2134c9ba90c68657713 (diff) | |
parent | 2fc8738bc9c2fb6364a22d86079e8635cee91949 (diff) | |
download | vyos-1x-d8a71978b4628e30b25346f4ff690e8705020408.tar.gz vyos-1x-d8a71978b4628e30b25346f4ff690e8705020408.zip |
Merge pull request #2431 from c-po/wireguard-t5707
wireguard: T5707: remove previously deconfigured peer
Diffstat (limited to 'python')
-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() |