daemon/core/netns/nodes.py
def updatemodel(self, model_name, values):
        ''' Allow for model updates during runtime (similar to setmodel().)
        '''
        if (self.verbose):
            self.info("updating model %s" % model_name)
        if self.model is None or self.model._name != model_name:
            return
        model = self.model
        if model._type == coreapi.CORE_TLV_REG_WIRELESS:
            if not model.updateconfig(values):
                return
            if self.model._positioncallback:
                for netif in self.netifs():
                    netif.poshook = self.model._positioncallback
                    if netif.node is not None:
                        (x,y,z) = netif.node.position.get()
                        netif.poshook(netif, x, y, z)
            self.model.setlinkparams()
 Allow for model updates during runtime (similar to setmodel().)
        
Allow for model updates during runtime (similar to setmodel().)
Allow for model updates during runtime ( similar to setmodel () . )
def updatemodel(self, model_name, values):
        if (self.verbose):
            self.info("updating model %s" % model_name)
        if self.model is None or self.model._name != model_name:
            return
        model = self.model
        if model._type == coreapi.CORE_TLV_REG_WIRELESS:
            if not model.updateconfig(values):
                return
            if self.model._positioncallback:
                for netif in self.netifs():
                    netif.poshook = self.model._positioncallback
                    if netif.node is not None:
                        (x,y,z) = netif.node.position.get()
                        netif.poshook(netif, x, y, z)
            self.model.setlinkparams()
def updatemodel ( self , model_name , values ) : if ( self . verbose ) : self . info ( "updating model %s" % model_name ) if self . model is None or self . model . _name != model_name : return model = self . model if model . _type == coreapi . CORE_TLV_REG_WIRELESS : if not model . updateconfig ( values ) : return if self . model . _positioncallback : for netif in self . netifs ( ) : netif . poshook = self . model . _positioncallback if netif . node is not None : ( x , y , z ) = netif . node . position . get ( ) netif . poshook ( netif , x , y , z ) self . model . setlinkparams ( )
Allow for model updates during runtime (similar to setmodel().)
Allow for model updates during runtime ( similar to setmodel () . )
''' Allow for model updates during runtime (similar to setmodel().)
        '''
self
model_name
values