diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-09-06 10:27:27 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-09-06 10:27:27 +0200 |
commit | b4eaa216e7dc44d950bc68adad330779dd1f71f6 (patch) | |
tree | 99cb23f7d7e54202f3bc0956ca3572402f2bdf67 | |
parent | 35c7d66165da2102ee8986c3999fe9fea16c38da (diff) | |
download | vyos-1x-b4eaa216e7dc44d950bc68adad330779dd1f71f6.tar.gz vyos-1x-b4eaa216e7dc44d950bc68adad330779dd1f71f6.zip |
Python/ifconfig: T1557: fix remove_peer commend in WireGuardIf
-rw-r--r-- | python/vyos/ifconfig.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/python/vyos/ifconfig.py b/python/vyos/ifconfig.py index 1886addfc..7593f2c91 100644 --- a/python/vyos/ifconfig.py +++ b/python/vyos/ifconfig.py @@ -1376,13 +1376,13 @@ class WireGuardIf(Interface): if os.path.exists(self.config['psk']): os.remove(self.config['psk']) - """ - Remove a peer of an interface, peers are identified by their public key. - Giving it a readable name is a vyos feature, to remove a peer the pubkey - and the interface is needed, to remove the entry. - """ def remove_peer(self, peerkey): + """ + Remove a peer of an interface, peers are identified by their public key. + Giving it a readable name is a vyos feature, to remove a peer the pubkey + and the interface is needed, to remove the entry. + """ cmd = "sudo wg set {0} peer {1} remove".format( self._ifname, str(peerkey)) self._cmd(cmd) |