def get_key(sock): """Get key to retrieve key for datapath features @param sock socket """ return dp_features.DP_FEATURES_KEY_PREFIX + mc.socket_str(sock)
def get_key(sock): """Get key to retrieve key for datapath features @param sock socket """ return dp_config.DP_CONFIG_KEY_PREFIX + mc.socket_str(sock)
def get_key(sock, mac): """Get key to retrieve binding between switch and mac """ return mac2sw_binding.MAC2SW_BINDING_PREFIX +\ mc.socket_str(sock) +\ "%x" % pu.array2val(mac)