The networking_cisco.apps.saf.common.utils
Module¶
-
class
networking_cisco.apps.saf.common.utils.
Dict2Obj
(d)¶ Bases:
object
Convert a dictionary to an object.
-
class
networking_cisco.apps.saf.common.utils.
EventProcessingThread
(name, obj, task, excq=None)¶ Bases:
threading.Thread
Event processing thread.
-
am_i_active
¶
-
name
¶
-
run
()¶
-
-
class
networking_cisco.apps.saf.common.utils.
PeriodicTask
(interval, func, **kwargs)¶ Bases:
object
Periodic task
-
run
()¶
-
stop
()¶
-
-
networking_cisco.apps.saf.common.utils.
find_agent_host_id
(this_host)¶ Returns the neutron agent host id for RHEL-OSP6 HA setup.
-
networking_cisco.apps.saf.common.utils.
get_uuid
()¶
-
networking_cisco.apps.saf.common.utils.
is_valid_ipv4
(addr)¶
-
networking_cisco.apps.saf.common.utils.
is_valid_mac
(addr)¶ Check the syntax of a given mac address.
The acceptable format is xx:xx:xx:xx:xx:xx
-
networking_cisco.apps.saf.common.utils.
lock
()¶
-
networking_cisco.apps.saf.common.utils.
make_cidr
(gw, mask)¶ Create network address in CIDR format.
Return network address for a given gateway address and netmask.
-
networking_cisco.apps.saf.common.utils.
utc_time
(ct)¶
-
networking_cisco.apps.saf.common.utils.
utc_time_lapse
(lapse)¶