Skip to content

Instantly share code, notes, and snippets.

@vpatov
Created April 17, 2017 01:54
Show Gist options
  • Save vpatov/aa540729c35114167a958fba1cf05d66 to your computer and use it in GitHub Desktop.
Save vpatov/aa540729c35114167a958fba1cf05d66 to your computer and use it in GitHub Desktop.
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