Minor fixes
This commit is contained in:
+1
-2
@@ -148,7 +148,6 @@ class Topo( object ):
|
|||||||
opts = self.lopts
|
opts = self.lopts
|
||||||
port1, port2 = self.addPort( node1, node2, port1, port2 )
|
port1, port2 = self.addPort( node1, node2, port1, port2 )
|
||||||
opts.update( node1=node1, node2=node2, port1=port1, port2=port2 )
|
opts.update( node1=node1, node2=node2, port1=port1, port2=port2 )
|
||||||
assert 'node1' in opts
|
|
||||||
self.g.add_edge(node1, node2, key, opts )
|
self.g.add_edge(node1, node2, key, opts )
|
||||||
return key
|
return key
|
||||||
|
|
||||||
@@ -179,7 +178,7 @@ class Topo( object ):
|
|||||||
"""Return links.
|
"""Return links.
|
||||||
sort: sort links alphabetically
|
sort: sort links alphabetically
|
||||||
withKeys: return key in tuple
|
withKeys: return key in tuple
|
||||||
@return links list of ( src, dst [,key ] )"""
|
returns: links list of ( src, dst [,key ] )"""
|
||||||
if not sort:
|
if not sort:
|
||||||
return self.g.edges( data=withInfo, key=withKeys )
|
return self.g.edges( data=withInfo, key=withKeys )
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user