예제 #1
0
    def matches(self, packet, dpid, port):
        log.debug('Packet IN? dpid = %s, port = %s' % (str(dpid), str(port)))
        node = self.get_node(packet, dpid, port)
        if not node:
            return False

        args = [self, packet, dpid, port]
        return OF_TcpServer.matches(*args)
예제 #2
0
 def __init__(self, callback, lport):
     self.buffers = {} # {(dpid, port): buffer, }
     MWServer.__init__(self, callback)
     OF_TcpServer.__init__(self, lport)