summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorGiga Murphy <giga1699@gmail.com>2023-08-20 19:11:35 +0000
committerGiga Murphy <giga1699@gmail.com>2023-08-20 19:11:35 +0000
commitb4bacbaa2b57644f141f9b53531317c2e6db7040 (patch)
treefc4f255bb37bad89febf019589d057673650d3df /python/vyos
parentae6b46b3eef3e51ac14a1b9d2e82dffd555fec66 (diff)
downloadvyos-1x-b4bacbaa2b57644f141f9b53531317c2e6db7040.tar.gz
vyos-1x-b4bacbaa2b57644f141f9b53531317c2e6db7040.zip
T5447: Remove redundant self.set_admin_state
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/ifconfig/macsec.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/python/vyos/ifconfig/macsec.py b/python/vyos/ifconfig/macsec.py
index e7aee4c1e..9329c5ee7 100644
--- a/python/vyos/ifconfig/macsec.py
+++ b/python/vyos/ifconfig/macsec.py
@@ -66,9 +66,5 @@ class MACsecIf(Interface):
cmd += f' sa 0 pn 1 on key 01 {peer_config["key"]}'
self._cmd(cmd)
- # interface is always A/D down. It needs to be enabled explicitly
- self.set_admin_state('down')
-
- else:
- # interface is always A/D down. It needs to be enabled explicitly
- self.set_admin_state('down')
+ # interface is always A/D down. It needs to be enabled explicitly
+ self.set_admin_state('down')