The networking_cisco.plugins.cisco.device_manager.plugging_drivers.utils Module

class networking_cisco.plugins.cisco.device_manager.plugging_drivers.utils.PluggingDriverUtilsMixin

Bases: object

networking_cisco.plugins.cisco.device_manager.plugging_drivers.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