The networking_cisco.plugins.cisco.common.utils Module¶
-
exception
networking_cisco.plugins.cisco.common.utils.DriverNotFound(**kwargs)¶ Bases:
neutron_lib.exceptions.NotFound-
message= u’Driver %(driver)s does not exist’¶
-
-
networking_cisco.plugins.cisco.common.utils.convert_validate_driver_class(driver_class_name)¶
-
networking_cisco.plugins.cisco.common.utils.retry(ExceptionToCheck, tries=4, delay=3, backoff=2)¶ Retry calling the decorated function using an exponential backoff.
Reference: http://www.saltycrane.com/blog/2009/11/trying-out-retry -decorator-python/
Parameters: - ExceptionToCheck – the exception to check. may be a tuple of exceptions to check
- tries – number of times to try (not retry) before giving up
- delay – initial delay between retries in seconds
- backoff – backoff multiplier e.g. value of 2 will double the delay each retry