Пример #1
0
 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
Пример #3
0
 def __init__(self, add, link):
     Event.__init__(self)
     self.link = link
     self.added = add
     self.removed = not add
Пример #4
0
 def __init__ (self,flows =[],ports=[]):
   Event.__init__(self)
   self.flows_data = flows
   self.ports_data = ports
Пример #5
0
 def __init__(self, flows=[], ports=[]):
     Event.__init__(self)
     self.flows_data = flows
     self.ports_data = ports
Пример #6
0
 def __init__(self, devices):
     Event.__init__(self)
     self.devices = devices
Пример #7
0
 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
Пример #8
0
 def __init__(self):
     """TODO: to be defined1. """
     Event.__init__(self)
Пример #9
0
 def __init__(self, req_id, *args, **kwargs):
     Event.__init__(self)
     self.req_id = req_id
     self.timestamp = time.time()
Пример #10
0
 def __init__(self, link):
     Event.__init__(self)
     self.link = link
Пример #11
0
 def __init__(self, devices):
     Event.__init__(self)
     self.devices = devices
Пример #12
0
 def __init__(self, updated, before):
     Event.__init__(self)
     self.link = updated
     self.before = before
Пример #13
0
 def __init__(self):
     Event.__init__(self)
     self.timestamp = time.time()
Пример #14
0
 def __init__ (self, add, link):
   Event.__init__(self)
   self.link = link
   self.added = add
   self.removed = not add