summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig/ethernet.py
diff options
context:
space:
mode:
authorThomas Mangin <thomas.mangin@exa.net.uk>2020-03-24 18:33:42 +0000
committerThomas Mangin <thomas.mangin@exa.net.uk>2020-03-24 18:33:42 +0000
commit1a57edcb8e3052a70296808d394c3d166bcda275 (patch)
treebc8032579545e8233d6c3f6be578d49f41e7ae8c /python/vyos/ifconfig/ethernet.py
parent8f02c42286ba92f1aa54502ebb22acd67c2a934d (diff)
downloadvyos-1x-1a57edcb8e3052a70296808d394c3d166bcda275.tar.gz
vyos-1x-1a57edcb8e3052a70296808d394c3d166bcda275.zip
ifconfig: T2057: convert VLAN to adapter
Diffstat (limited to 'python/vyos/ifconfig/ethernet.py')
-rw-r--r--python/vyos/ifconfig/ethernet.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/python/vyos/ifconfig/ethernet.py b/python/vyos/ifconfig/ethernet.py
index 606161121..850bb34ae 100644
--- a/python/vyos/ifconfig/ethernet.py
+++ b/python/vyos/ifconfig/ethernet.py
@@ -16,14 +16,15 @@
import os
import re
-from vyos.ifconfig.vlan import VLANIf
from vyos.ifconfig.interface import Interface
+from vyos.ifconfig.vlan import VLAN
from vyos.validate import *
@Interface.register
-class EthernetIf(VLANIf):
+@VLAN.enable
+class EthernetIf(Interface):
"""
Abstraction of a Linux Ethernet Interface
"""
@@ -42,7 +43,8 @@ class EthernetIf(VLANIf):
}
}
- _command_set = {**VLANIf._command_set, **{
+
+ _command_set = {**Interface._command_set, **{
'gro': {
'validate': lambda v: assert_list(v, ['on', 'off']),
'shellcmd': '/sbin/ethtool -K {ifname} gro {value}',