Retries are attempted if VF configuration fails
When DPDK drivers are bound to a VF, it takes a while for the
succesfull configuration of the VFs via 'ip link' commands.
In order to facilitate the VF configuration, retries are made.
Change-Id: Ia6805a422c72c91e4a506c75498f841ef9cb6342
(cherry picked from commit 65f240fe4d
)
This commit is contained in:
parent
0df97cbac6
commit
495474814b
|
@ -435,7 +435,7 @@ def configure_switchdev(pf_name):
|
|||
def run_ip_config_cmd(*cmd, **kwargs):
|
||||
logger.info("Running %s" % ' '.join(cmd))
|
||||
try:
|
||||
processutils.execute(*cmd, **kwargs)
|
||||
processutils.execute(*cmd, delay_on_retry=True, attempts=10, **kwargs)
|
||||
except processutils.ProcessExecutionError:
|
||||
logger.error("Failed to execute %s" % ' '.join(cmd))
|
||||
raise
|
||||
|
|
Loading…
Reference in New Issue