summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-09-15 15:35:27 +0200
committerChristian Poessinger <christian@poessinger.com>2019-09-20 21:28:53 +0200
commit738b62f0fb410daf1dbe97ad8aed9d862b44ec94 (patch)
tree725c3e5fd992c1783cb28d1eb1d765fbb704c1ef /python
parent8fe9187419fc77df156bb0cbba3a5ca1d61cc36f (diff)
downloadvyos-1x-738b62f0fb410daf1dbe97ad8aed9d862b44ec94.tar.gz
vyos-1x-738b62f0fb410daf1dbe97ad8aed9d862b44ec94.zip
ethernet: T1637: call remove() on interface deletion
Diffstat (limited to 'python')
-rw-r--r--python/vyos/ifconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/ifconfig.py b/python/vyos/ifconfig.py
index 980577965..c0d1660d1 100644
--- a/python/vyos/ifconfig.py
+++ b/python/vyos/ifconfig.py
@@ -130,7 +130,7 @@ class Interface:
self._del_dhcpv6()
# Ethernet interfaces can not be removed
- if type(self) == type(EthernetIf):
+ if type(self) == type(EthernetIf(self._ifname)):
return
# NOTE (Improvement):