def __init__ (self, node, packet, port): assert assert_type("packet", packet, ethernet, none_ok=False) Event.__init__(self) self.node = node self.packet = packet self.port = port self.switch = node # For backwards compatability
def __init__(self, node, packet, port): assert assert_type("packet", packet, ethernet, none_ok=False) Event.__init__(self) self.node = node self.packet = packet self.port = port self.switch = node # For backwards compatability
def __init__(self, add, link): Event.__init__(self) self.link = link self.added = add self.removed = not add
def __init__ (self,flows =[],ports=[]): Event.__init__(self) self.flows_data = flows self.ports_data = ports
def __init__(self, flows=[], ports=[]): Event.__init__(self) self.flows_data = flows self.ports_data = ports
def __init__(self, devices): Event.__init__(self) self.devices = devices
def __init__(self, local_switch, local_port, remote_dpid, remote_port): Event.__init__(self) self.local_switch = local_switch self.local_port = local_port self.remote_dpid = remote_dpid self.remote_port = remote_port
def __init__(self): """TODO: to be defined1. """ Event.__init__(self)
def __init__(self, req_id, *args, **kwargs): Event.__init__(self) self.req_id = req_id self.timestamp = time.time()
def __init__(self, link): Event.__init__(self) self.link = link
def __init__(self, updated, before): Event.__init__(self) self.link = updated self.before = before
def __init__(self): Event.__init__(self) self.timestamp = time.time()
def __init__ (self, add, link): Event.__init__(self) self.link = link self.added = add self.removed = not add