Skip to content

Commit 9c4b734

Browse files
committed
Fix indentation in LinearTopo()
1 parent 5b48a7d commit 9c4b734

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

mininet/topo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,9 @@ def __init__(self, k=2, n=1, **opts):
255255
switch = self.addSwitch('s%s' % i)
256256
# Add hosts to switch
257257
for j in irange(1, n):
258-
hostNum = (i-1)*n + j
259-
host = self.addHost('h%s' % hostNum)
260-
self.addLink(host, switch)
258+
hostNum = (i-1)*n + j
259+
host = self.addHost('h%s' % hostNum)
260+
self.addLink(host, switch)
261261
# Connect switch to previous
262262
if lastSwitch:
263263
self.addLink(switch, lastSwitch)

0 commit comments

Comments
 (0)