Exemple #1
0
 def __init__(self,node1,port1,node2,port2,props={}):
     GenericLink.__init__(self,node1,port1,node2,port2)
     Properties.__init__(self,self.getResourceName(),props)
     node1.props['links'].append(self)
     node2.props['links'].append(self)
Exemple #2
0
 def __init__(self, node1, port1, node2, port2, props={}):
     GenericLink.__init__(self, node1, port1, node2, port2)
     Properties.__init__(self, self.getResourceName(), props)
     node1.props['links'].append(self)
     node2.props['links'].append(self)
Exemple #3
0
 def __init__(self,node1,port1,node2,port2,props={}):
     GenericLink.__init__(self,node1,port1,node2,port2)
     Properties.__init__(self,self.getResourceName(),props)
     node1.props['links'].append(self)
     node2.props['links'].append(self)
     self.setSpeed(10*1024) # Assume 10G speed is in Mbps
Exemple #4
0
 def __init__(self,node1,port1,node2,port2,props={}):
     GenericLink.__init__(self,node1,port1,node2,port2)
     Properties.__init__(self,self.getResourceName(),props)
     node1.props['links'].append(self)
     node2.props['links'].append(self)
     self.setSpeed(10*1024) # Assume 10G speed is in Mbps