Skip to content
Snippets Groups Projects
Commit 9c4b7343 authored by Bob Lantz's avatar Bob Lantz
Browse files

Fix indentation in LinearTopo()

parent 5b48a7d9
No related branches found
No related tags found
No related merge requests found
......@@ -255,9 +255,9 @@ def __init__(self, k=2, n=1, **opts):
switch = self.addSwitch('s%s' % i)
# Add hosts to switch
for j in irange(1, n):
hostNum = (i-1)*n + j
host = self.addHost('h%s' % hostNum)
self.addLink(host, switch)
hostNum = (i-1)*n + j
host = self.addHost('h%s' % hostNum)
self.addLink(host, switch)
# Connect switch to previous
if lastSwitch:
self.addLink(switch, lastSwitch)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment