Skip to content

Commit

Permalink
Update Mininet class to use node ids
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrjurkiewicz committed Aug 20, 2024
1 parent 76c79ab commit 9e649cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion topohub/mininet.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def build(self, *args, **params):
self.demands[str(src), str(dst)] = demands[src][dst]

for node in topo['nodes']:
self.addSwitch(str(node['id']), **{k: v for k, v in node.items() if k != 'id'})
self.addSwitch(str(node['id']), **{k: v for k, v in node.items() if k not in ['id', 'name']})
for link in topo['links']:
self.addLink(str(link['source']), str(link['target']), **{k: v for k, v in link.items() if k not in ['source', 'target']})

Expand Down

0 comments on commit 9e649cf

Please sign in to comment.