示例#1
0
文件: switches.py 项目: yapkke/yapc
    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)
示例#2
0
文件: switches.py 项目: yapkke/yapc
    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)
示例#3
0
 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)