Revision 92bf2cf1

View differences:

mininet/topo.py
261 261
            switch = self.addSwitch('s%s' % i)
262 262
            # Add hosts to switch
263 263
            for j in irange(1, n):
264
                hostNum = (i-1)*n + j
265
                #host = self.addHost('h%s' % hostNum)
266 264
                host = self.addHost(genHostName(i, j))
267 265
                self.addLink(host, switch)
268 266
            # Connect switch to previous

Also available in: Unified diff