diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-05-20 21:07:59 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-05-20 21:07:59 +0200 |
commit | 0f98642dfbc6fd4b5eb9059abbb6e9767e0e0a8f (patch) | |
tree | f8bb64c4b439fe10e45f390ef9920d62b10dcc35 /python/vyos/ifconfig/interface.py | |
parent | 3f932b66a5523c2d80a94a476527f99161f1fca6 (diff) | |
download | vyos-1x-0f98642dfbc6fd4b5eb9059abbb6e9767e0e0a8f.tar.gz vyos-1x-0f98642dfbc6fd4b5eb9059abbb6e9767e0e0a8f.zip |
interface: T2023: adopt _delete() to common style
Diffstat (limited to 'python/vyos/ifconfig/interface.py')
-rw-r--r-- | python/vyos/ifconfig/interface.py | 2 |
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): |