From 01938cec2c2e19c8f556c2e5b425fc79d038126f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 3 Sep 2019 15:14:05 +0200 Subject: Python/ifconfig: T1557: derive BondIf from EthernetIf as we need VLANs --- python/vyos/ifconfig.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'python/vyos/ifconfig.py') 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 -- cgit v1.2.3