bond: test arp_all_targets only when arp_interval is enabled

Kernel allows to set `arp_all_targets` when `arp_interval` is disabled
(disable ARP monitoring). But `arp_all_targets` specifies the quantity
of `arp_ip_targets` that must be reachable in order for the ARP monitor
to consider a slave as being up. It makes more sense to only set the
`arp_all_targets` while enabling the `arp_interval`.

Signed-off-by: Wen Liang <liangwen12year@gmail.com>
This commit is contained in:
Wen Liang 2022-09-30 16:45:33 -04:00 committed by Fernando Fernández Mancera
parent 90a8ea5051
commit d311d60b73
2 changed files with 0 additions and 3 deletions

View file

@ -20,7 +20,6 @@
ad_select: stable
ad_user_port_key: 1023
all_ports_active: True
arp_all_targets: all
downdelay: 0
lacp_rate: slow
lp_interval: 128

View file

@ -40,7 +40,6 @@
ad_select: stable
ad_user_port_key: 1023
all_ports_active: True
arp_all_targets: all
downdelay: 0
lacp_rate: slow
lp_interval: 128
@ -88,7 +87,6 @@
- { key: 'ad_select', value: 'stable'}
- { key: 'ad_user_port_key', value: '1023'}
- { key: 'all_slaves_active', value: '1'}
- { key: 'arp_all_targets', value: 'all'}
- { key: 'downdelay', value: '0'}
- { key: 'lacp_rate', value: 'slow'}
- { key: 'lp_interval', value: '128'}