From 9c4b7343617765f418ad3b86590d849904a4dbc8 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Tue, 30 Jul 2013 11:52:53 -0700 Subject: [PATCH] Fix indentation in LinearTopo() --- mininet/topo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mininet/topo.py b/mininet/topo.py index da21300..ed3e260 100644 --- a/mininet/topo.py +++ b/mininet/topo.py @@ -255,9 +255,9 @@ class LinearTopo(Topo): 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)