summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig/ethernet.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-22 07:21:49 +0200
committerGitHub <noreply@github.com>2020-04-22 07:21:49 +0200
commitffc065158dc875d15d55df8b32a0a33b643e4202 (patch)
treeff72edf3b717a8829d901bc12a2784095693ea91 /python/vyos/ifconfig/ethernet.py
parent0a22262769263a169dd8beb8cc58bdb17858735a (diff)
parent009c9d6996531ae7a1edce1ceb755e36647cde4e (diff)
downloadvyos-1x-ffc065158dc875d15d55df8b32a0a33b643e4202.tar.gz
vyos-1x-ffc065158dc875d15d55df8b32a0a33b643e4202.zip
Merge pull request #369 from thomas-mangin/T2361
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