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)
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)
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