'k: number of hosts'

def build(self, k=2, **_opts):

    self.k = k
    switch = self.addSwitch('s1')
    for h in irange(1, k):
        host = self.addHost(('h%s' % h))
        self.addLink(host, switch)
