def startup(self, nodenums=None):
        ''' Session is transitioning from instantiation to runtime state.
        Instantiate any mobility models that have been configured for a WLAN.
        '''
        if nodenums is None:
            nodenums = self.configs.keys()
            
        for nodenum in nodenums:
            try:
                n = self.session.obj(nodenum)
            except KeyError:
                self.session.warn("Skipping mobility configuration for unknown"
                                "node %d." % nodenum)
                continue
            if nodenum not in self.configs:
                self.session.warn("Missing mobility configuration for node "
                                  "%d." % nodenum)
                continue
            v = self.configs[nodenum]
            for model in v:
                try:
                    cls = self._modelclsmap[model[0]]
                except KeyError:
                    self.session.warn("Skipping mobility configuration for "
                                      "unknown model '%s'" % model[0])
                    continue
                n.setmodel(cls, model[1])
            if self.session.master:
                self.installphysnodes(n)
            if n.mobility:
                self.session.evq.add_event(0.0, n.mobility.startup)
        return ()
dataset/ETHPy150Open coreemu/core/daemon/core/mobility.py/MobilityManager.startup/original