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:
Rodolfo Alonso Hernandez 2020-06-29 08:45:56 +00:00
parent 9867baa86f
commit 72d95d40d4
1 changed files with 1 additions and 1 deletions

View File

@ -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)