summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-20 21:07:59 +0200
committerChristian Poessinger <christian@poessinger.com>2020-05-20 21:07:59 +0200
commit0f98642dfbc6fd4b5eb9059abbb6e9767e0e0a8f (patch)
treef8bb64c4b439fe10e45f390ef9920d62b10dcc35
parent3f932b66a5523c2d80a94a476527f99161f1fca6 (diff)
downloadvyos-1x-0f98642dfbc6fd4b5eb9059abbb6e9767e0e0a8f.tar.gz
vyos-1x-0f98642dfbc6fd4b5eb9059abbb6e9767e0e0a8f.zip
interface: T2023: adopt _delete() to common style
-rw-r--r--python/vyos/ifconfig/interface.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py
index 6e5cfad9e..07efc6d97 100644
--- a/python/vyos/ifconfig/interface.py
+++ b/python/vyos/ifconfig/interface.py
@@ -265,7 +265,7 @@ class Interface(Control):
# NOTE (Improvement):
# after interface removal no other commands should be allowed
# to be called and instead should raise an Exception:
- cmd = 'ip link del dev {}'.format(self.config['ifname'])
+ cmd = 'ip link del dev {ifname}'.format(**self.config)
return self._cmd(cmd)
def get_mtu(self):