def createbridgedsession(self,  numnodes, verbose = False):
        ''' Build a topology consisting of the given number of LxcNodes
            connected to a WLAN.
        '''
        # IP subnet
        prefix = ipaddr.IPv4Prefix("10.0.0.0/16")
        self.session = pycore.Session()
        # emulated network
        self.net = self.session.addobj(cls = pycore.nodes.WlanNode,
                                       name = "wlan1")
        prev = None
        for i in xrange(1, numnodes + 1):
            addr = "%s/%s" % (prefix.addr(i), 32)
            tmp = self.session.addobj(cls = pycore.nodes.CoreNode, objid = i,
                                      name = i % "n%d")
            tmp.newnetif(self.net, [addr])
            self.nodes.append(tmp)
            self.session.services.addservicestonode(tmp, "router",
                                                    "IPForward", self.verbose)
            self.session.services.bootnodeservices(tmp)
            self.staticroutes(i, prefix, numnodes)
                    
            # link each node in a chain, with the previous node
            if prev:
                self.net.link(prev.netif(0), tmp.netif(0))
            prev = tmp
dataset/ETHPy150Open coreemu/core/daemon/examples/netns/wlanemanetests.py/Experiment.createbridgedsession/swapped operands of `%`