From b4eaa216e7dc44d950bc68adad330779dd1f71f6 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 6 Sep 2019 10:27:27 +0200 Subject: Python/ifconfig: T1557: fix remove_peer commend in WireGuardIf --- python/vyos/ifconfig.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'python') 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) -- cgit v1.2.3