¡@
Home
OpenStack Index **** CubicPower OpenStack Study ****def cmp_dpid(dpid_a, dpid_b): """Compare two datapath IDs as hexadecimal int. It returns True if equal, otherwise False. """ try: return (int(dpid_a, 16) == int(dpid_b, 16)) except Exception: return False
**** CubicPower OpenStack Study ****
def cmp_dpid(dpid_a, dpid_b):
"""Compare two datapath IDs as hexadecimal int.
It returns True if equal, otherwise False.
"""
try:
return (int(dpid_a, 16) == int(dpid_b, 16))
except Exception:
return False