示例#1
0
文件: enos.py 项目: esnet/enos
 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)
示例#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)
示例#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
示例#4
0
文件: topology.py 项目: cygmris/enos
 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