Beispiel #1
0
 def __init__(self, bandwidth):
     
     SwitchPort.__init__(self, GlobalConfiguration.simpyEnv, float(bandwidth), None, False)
     
     self.bandwidth      = bandwidth
     self.id             = Interface.curr_id
     Interface.curr_id   = Interface.curr_id + 1         
Beispiel #2
0
 def __init__(self, name, bandwidth, port, address, netmask):
       
       
     SwitchPort.__init__(self, GlobalConfiguration.simpyEnv, float(bandwidth), None, False)
     
     self.name       = name
     self.bandwidth  = bandwidth
     self.port       = port
     self.address    = address
     self.netmask    = netmask