Created
April 17, 2017 01:54
-
-
Save vpatov/aa540729c35114167a958fba1cf05d66 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
connections = { | |
'r1':['h1','r2','r3'], | |
'r4':['h2','r2','r3'] | |
} | |
for name_a in names: | |
if name_a in connections: | |
for name_b in connections[name_a]: | |
self.addLink(quaggaContainers[name_a],quaggaContainers[name_b]) | |
print "adding link", name_a, name_b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment