From 009c9d6996531ae7a1edce1ceb755e36647cde4e Mon Sep 17 00:00:00 2001 From: Thomas Mangin Date: Tue, 21 Apr 2020 21:29:27 +0100 Subject: vlan: T2361: delete VLAN but not ethernet --- python/vyos/ifconfig/ethernet.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'python/vyos/ifconfig/ethernet.py') 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 -- cgit v1.2.3