From b4bacbaa2b57644f141f9b53531317c2e6db7040 Mon Sep 17 00:00:00 2001 From: Giga Murphy Date: Sun, 20 Aug 2023 19:11:35 +0000 Subject: T5447: Remove redundant self.set_admin_state --- python/vyos/ifconfig/macsec.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'python/vyos/ifconfig/macsec.py') 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') -- cgit v1.2.3