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 aedb872 + 32d7efb commit ddd01eeCopy full SHA for ddd01ee
neutron/privileged/agent/linux/ip_lib.py
@@ -348,6 +348,10 @@ def set_link_flags(device, namespace, flags):
348
_run_iproute_link("set", device, namespace, flags=new_flags)
349
350
351
+@tenacity.retry(
352
+ retry=tenacity.retry_if_exception_type(NetworkInterfaceNotFound),
353
+ wait=tenacity.wait_exponential(multiplier=0.02, max=1),
354
+ stop=tenacity.stop_after_delay(3), reraise=True)
355
@privileged.link_cmd.entrypoint
356
def set_link_attribute(device, namespace, **attributes):
357
_run_iproute_link("set", device, namespace, **attributes)
@@ -378,7 +382,8 @@ def set_link_bridge_master(device, bridge, namespace=None):
378
382
379
383
@tenacity.retry(
380
384
retry=tenacity.retry_if_exception_type(
381
- netlink_exceptions.NetlinkDumpInterrupted),
385
+ (netlink_exceptions.NetlinkDumpInterrupted,
386
+ NetworkInterfaceNotFound)),
387
wait=tenacity.wait_exponential(multiplier=0.02, max=1),
388
stop=tenacity.stop_after_delay(8),
389
reraise=True)
0 commit comments