summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-09-03 15:14:05 +0200
committerChristian Poessinger <christian@poessinger.com>2019-09-03 15:14:05 +0200
commit01938cec2c2e19c8f556c2e5b425fc79d038126f (patch)
tree51bcf56d3f675811254ecdd0e5b30dedc142077e /python
parent21bcf16ce23d3df7c3267508012e663e8b443ccd (diff)
downloadvyos-1x-01938cec2c2e19c8f556c2e5b425fc79d038126f.tar.gz
vyos-1x-01938cec2c2e19c8f556c2e5b425fc79d038126f.zip
Python/ifconfig: T1557: derive BondIf from EthernetIf as we need VLANs
Diffstat (limited to 'python')
-rw-r--r--python/vyos/ifconfig.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/vyos/ifconfig.py b/python/vyos/ifconfig.py
index 341a9770c..8cf5e1645 100644
--- a/python/vyos/ifconfig.py
+++ b/python/vyos/ifconfig.py
@@ -966,7 +966,11 @@ class BridgeIf(Interface):
.format(self._ifname, interface), priority)
-class BondIf(Interface):
+class EthernetIf(Interface):
+ def __init__(self, ifname, type=None):
+ super().__init__(ifname, type)
+
+class BondIf(EthernetIf):
"""
The Linux bonding driver provides a method for aggregating multiple network
interfaces into a single logical "bonded" interface. The behavior of the