Provide integer number to arping "-w" parameter
Some arping versions only accept an integer number for the "deadline" (-w) parameter. Change-Id: Icf5e2a73b15407419d5c922e236181af85aad0dc Closes-Bug: #1885169
This commit is contained in:
parent
9867baa86f
commit
72d95d40d4
|
@ -1011,7 +1011,7 @@ def _arping(ns_name, iface_name, address, count, log_exception):
|
|||
arping_cmd = ['arping', arg, '-I', iface_name, '-c', 1,
|
||||
# Pass -w to set timeout to ensure exit if interface
|
||||
# removed while running
|
||||
'-w', 1.5, address]
|
||||
'-w', 2, address]
|
||||
try:
|
||||
ip_wrapper.netns.execute(arping_cmd,
|
||||
extra_ok_codes=extra_ok_codes)
|
||||
|
|
Loading…
Reference in New Issue