summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-09-24 19:24:45 +0200
committerChristian Poessinger <christian@poessinger.com>2019-09-24 21:53:26 +0200
commitbc9b28132ca7270f226968d0c1207adefe768049 (patch)
tree4fc9f46149e134d15a7795a68f1d7669caca6de8 /src
parent7d747a6ad08d0ea726333bfa9917c7f05439f33b (diff)
downloadvyos-1x-bc9b28132ca7270f226968d0c1207adefe768049.tar.gz
vyos-1x-bc9b28132ca7270f226968d0c1207adefe768049.zip
Python/ifconfig: T1557: refactor BondIf 'arp_interval' property to set_arp_interval()
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interface-bonding.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/conf_mode/interface-bonding.py b/src/conf_mode/interface-bonding.py
index 01df0e3d2..6092d0732 100755
--- a/src/conf_mode/interface-bonding.py
+++ b/src/conf_mode/interface-bonding.py
@@ -345,11 +345,8 @@ def apply(bond):
b.del_port(intf)
# ARP link monitoring frequency, reset miimon when arp-montior is inactive
- if bond['arp_mon_intvl'] == 0:
- # reset miimon to default
- b.miimon = 250
- else:
- b.set_arp_interval(bond['arp_mon_intvl'])
+ # this is done inside BondIf automatically
+ b.set_arp_interval(bond['arp_mon_intvl'])
# ARP monitor targets need to be synchronized between sysfs and CLI.
# Unfortunately an address can't be send twice to sysfs as this will