We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
set|get_link_attribute(s)
2 parents 0dfe8de + 1d2a1c6 commit c48f36dCopy full SHA for c48f36d
neutron/privileged/agent/linux/ip_lib.py
@@ -400,6 +400,10 @@ def set_link_flags(device, namespace, flags):
400
_run_iproute_link("set", device, namespace, flags=new_flags)
401
402
403
+@tenacity.retry(
404
+ retry=tenacity.retry_if_exception_type(NetworkInterfaceNotFound),
405
+ wait=tenacity.wait_exponential(multiplier=0.02, max=1),
406
+ stop=tenacity.stop_after_delay(3), reraise=True)
407
@privileged.link_cmd.entrypoint
408
def set_link_attribute(device, namespace, **attributes):
409
_run_iproute_link("set", device, namespace, **attributes)
@@ -430,7 +434,8 @@ def set_link_bridge_master(device, bridge, namespace=None):
430
434
431
435
@tenacity.retry(
432
436
retry=tenacity.retry_if_exception_type(
433
- netlink_exceptions.NetlinkDumpInterrupted),
437
+ (netlink_exceptions.NetlinkDumpInterrupted,
438
+ NetworkInterfaceNotFound)),
439
wait=tenacity.wait_exponential(multiplier=0.02, max=1),
440
stop=tenacity.stop_after_delay(8),
441
reraise=True)
0 commit comments