summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig/ethernet.py
diff options
context:
space:
mode:
authorThomas Mangin <thomas.mangin@exa.net.uk>2020-04-21 21:29:27 +0100
committerThomas Mangin <thomas.mangin@exa.net.uk>2020-04-21 21:33:52 +0100
commit009c9d6996531ae7a1edce1ceb755e36647cde4e (patch)
treeff72edf3b717a8829d901bc12a2784095693ea91 /python/vyos/ifconfig/ethernet.py
parent0a22262769263a169dd8beb8cc58bdb17858735a (diff)
downloadvyos-1x-009c9d6996531ae7a1edce1ceb755e36647cde4e.tar.gz
vyos-1x-009c9d6996531ae7a1edce1ceb755e36647cde4e.zip
vlan: T2361: delete VLAN but not ethernet
Diffstat (limited to 'python/vyos/ifconfig/ethernet.py')
-rw-r--r--python/vyos/ifconfig/ethernet.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/python/vyos/ifconfig/ethernet.py b/python/vyos/ifconfig/ethernet.py
index 542de4f59..5b18926c9 100644
--- a/python/vyos/ifconfig/ethernet.py
+++ b/python/vyos/ifconfig/ethernet.py
@@ -40,6 +40,7 @@ class EthernetIf(Interface):
'bondable': True,
'broadcast': True,
'bridgeable': True,
+ 'eternal': '(lan|eth|eno|ens|enp|enx)[0-9]+$',
}
}
@@ -76,10 +77,6 @@ class EthernetIf(Interface):
},
}}
- def _delete(self):
- # Ethernet interfaces can not be removed
- pass
-
def get_driver_name(self):
"""
Return the driver name used by NIC. Some NICs don't support all