diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-09-19 21:08:40 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-09-19 21:08:40 +0200 |
commit | d1c9ee33f25e45cea0d01f9685f99c960ed4d7f8 (patch) | |
tree | 72fdd97c9050f0e77a7a5bc744de3266e4058cac /python/vyos/ifconfig/bond.py | |
parent | 14c754f8bd6c96165d8ad3745c19c80a562910e1 (diff) | |
download | vyos-1x-d1c9ee33f25e45cea0d01f9685f99c960ed4d7f8.tar.gz vyos-1x-d1c9ee33f25e45cea0d01f9685f99c960ed4d7f8.zip |
ifconfig: T2653: convert VLAN interfaces do discrete class
Instead of using an Adapter pattern to make interfaces VLAN-aware, create a
derived class named VLANIf to represent a VLAN. This change was necessary to
eliminate mixed code in Interfaces class which was VLAN - free, but recently
gained some VLAN specific code for set_admin_state().
In addition this "autoresolves" the issue in T2894 as a bond vlan interface
will no longer change the lower interface.
Diffstat (limited to 'python/vyos/ifconfig/bond.py')
-rw-r--r-- | python/vyos/ifconfig/bond.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/python/vyos/ifconfig/bond.py b/python/vyos/ifconfig/bond.py index c33cf30bf..9108fc180 100644 --- a/python/vyos/ifconfig/bond.py +++ b/python/vyos/ifconfig/bond.py @@ -16,15 +16,12 @@ import os from vyos.ifconfig.interface import Interface -from vyos.ifconfig.vlan import VLAN - from vyos.util import cmd from vyos.util import vyos_dict_search from vyos.validate import assert_list from vyos.validate import assert_positive @Interface.register -@VLAN.enable class BondIf(Interface): """ The Linux bonding driver provides a method for aggregating multiple network |