Fix indentation in LinearTopo()

This commit is contained in:
Bob Lantz
2013-07-30 11:52:53 -07:00
parent 5b48a7d92c
commit 9c4b734361
+3 -3
View File
@@ -255,9 +255,9 @@ class LinearTopo(Topo):
switch = self.addSwitch('s%s' % i) switch = self.addSwitch('s%s' % i)
# Add hosts to switch # Add hosts to switch
for j in irange(1, n): for j in irange(1, n):
hostNum = (i-1)*n + j hostNum = (i-1)*n + j
host = self.addHost('h%s' % hostNum) host = self.addHost('h%s' % hostNum)
self.addLink(host, switch) self.addLink(host, switch)
# Connect switch to previous # Connect switch to previous
if lastSwitch: if lastSwitch:
self.addLink(switch, lastSwitch) self.addLink(switch, lastSwitch)