summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEshenko Dmitriy <snooppy@mail.ua>2019-09-13 18:54:30 +0300
committerGitHub <noreply@github.com>2019-09-13 18:54:30 +0300
commitfb1689e20ab9967a4c1e24279f5d4d736b256e83 (patch)
tree8ff5c9ba1f0858b5492d088ed68837ef4e9040d3 /src
parent5d432809cb44c49c5164f06f8795e9f7ed87854f (diff)
downloadvyos-1x-fb1689e20ab9967a4c1e24279f5d4d736b256e83.tar.gz
vyos-1x-fb1689e20ab9967a4c1e24279f5d4d736b256e83.zip
[bonding] T1660 Adding additional check. Some bonding mode don't support arp_interval
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interface-bonding.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/interface-bonding.py b/src/conf_mode/interface-bonding.py
index dc0363fb7..447debe0f 100755
--- a/src/conf_mode/interface-bonding.py
+++ b/src/conf_mode/interface-bonding.py
@@ -355,7 +355,8 @@ def apply(bond):
b.del_port(intf)
# ARP link monitoring frequency
- b.arp_interval = bond['arp_mon_intvl']
+ if bond['mode'] not in ['802.3ad', 'balance-tlb', 'balance-alb']:
+ b.arp_interval = bond['arp_mon_intvl']
# reset miimon on arp-montior deletion
if bond['arp_mon_intvl'] == 0:
# reset miimon to default