diff options
author | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-03-24 18:33:42 +0000 |
---|---|---|
committer | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-03-24 18:33:42 +0000 |
commit | 1a57edcb8e3052a70296808d394c3d166bcda275 (patch) | |
tree | bc8032579545e8233d6c3f6be578d49f41e7ae8c /python/vyos/ifconfig/bond.py | |
parent | 8f02c42286ba92f1aa54502ebb22acd67c2a934d (diff) | |
download | vyos-1x-1a57edcb8e3052a70296808d394c3d166bcda275.tar.gz vyos-1x-1a57edcb8e3052a70296808d394c3d166bcda275.zip |
ifconfig: T2057: convert VLAN to adapter
Diffstat (limited to 'python/vyos/ifconfig/bond.py')
-rw-r--r-- | python/vyos/ifconfig/bond.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/python/vyos/ifconfig/bond.py b/python/vyos/ifconfig/bond.py index af4082f8f..3c26b9b95 100644 --- a/python/vyos/ifconfig/bond.py +++ b/python/vyos/ifconfig/bond.py @@ -16,13 +16,14 @@ import os from vyos.ifconfig.interface import Interface -from vyos.ifconfig.vlan import VLANIf +from vyos.ifconfig.vlan import VLAN from vyos.validate import * @Interface.register -class BondIf(VLANIf): +@VLAN.enable +class BondIf(Interface): """ The Linux bonding driver provides a method for aggregating multiple network interfaces into a single logical "bonded" interface. The behavior of the @@ -44,7 +45,7 @@ class BondIf(VLANIf): }, } - _sysfs_set = {**VLANIf._sysfs_set, **{ + _sysfs_set = {**Interface._sysfs_set, **{ 'bond_hash_policy': { 'validate': lambda v: assert_list(v, ['layer2', 'layer2+3', 'layer3+4', 'encap2+3', 'encap3+4']), 'location': '/sys/class/net/{ifname}/bonding/xmit_hash_policy', @@ -77,7 +78,7 @@ class BondIf(VLANIf): }, }} - _sysfs_get = {**VLANIf._sysfs_get, **{ + _sysfs_get = {**Interface._sysfs_get, **{ 'bond_arp_ip_target': { 'location': '/sys/class/net/{ifname}/bonding/arp_ip_target', } |