diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-09-24 18:33:30 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-09-24 21:53:25 +0200 |
commit | 8138766884bb7fe301dc21d2cb0bd3556d169d2e (patch) | |
tree | fd75470c7006d261f235a325cdd2e4ec2fdfd4b7 /src/conf_mode/interface-bonding.py | |
parent | 78badc8690cb06a0062694c21eb5329b830233d5 (diff) | |
download | vyos-1x-8138766884bb7fe301dc21d2cb0bd3556d169d2e.tar.gz vyos-1x-8138766884bb7fe301dc21d2cb0bd3556d169d2e.zip |
Python/ifconfig: T1557: refactor Interface 'link_detect' property to set_link_detect()
Diffstat (limited to 'src/conf_mode/interface-bonding.py')
-rwxr-xr-x | src/conf_mode/interface-bonding.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/interface-bonding.py b/src/conf_mode/interface-bonding.py index 83cd2facc..dce4a8106 100755 --- a/src/conf_mode/interface-bonding.py +++ b/src/conf_mode/interface-bonding.py @@ -86,7 +86,7 @@ def apply_vlan_config(vlan, config): # update interface description used e.g. within SNMP vlan.ifalias = config['description'] # ignore link state changes - vlan.link_detect = config['disable_link_detect'] + vlan.set_link_detect(config['disable_link_detect']) # Maximum Transmission Unit (MTU) vlan.set_mtu(config['mtu']) # Change VLAN interface MAC address @@ -376,7 +376,7 @@ def apply(bond): # # ignore link state changes - b.link_detect = bond['disable_link_detect'] + b.set_link_detect(bond['disable_link_detect']) # Bonding transmit hash policy b.xmit_hash_policy = bond['hash_policy'] # configure ARP cache timeout in milliseconds |