daemon/core/emane/nodes.py
def installnetifs(self, do_netns=True):
        ''' Install TAP devices into their namespaces. This is done after
            EMANE daemons have been started, because that is their only chance
            to bind to the TAPs.
        '''
        if not self.session.emane.doeventmonitor() and \
            self.session.emane.service is None:
            warntxt = "unable to publish EMANE events because the eventservice "
            warntxt += "Python bindings failed to load"
            self.session.exception(coreapi.CORE_EXCP_LEVEL_ERROR, self.name,
                                    self.objid, warntxt)

        for netif in self.netifs():
            if do_netns and "virtual" in netif.transport_type.lower():
                netif.install()
            netif.setaddrs()
            # if we are listening for EMANE events, don't generate them
            if self.session.emane.doeventmonitor():
                netif.poshook = None
                continue
            # at this point we register location handlers for generating
            # EMANE location events
            netif.poshook = self.setnemposition
            (x,y,z) = netif.node.position.get()
            self.setnemposition(netif, x, y, z)
 Install TAP devices into their namespaces. This is done after
            EMANE daemons have been started, because that is their only chance
            to bind to the TAPs.
        
Install TAP devices into their namespaces. This is done after
EMANE daemons have been started, because that is their only chance
to bind to the TAPs.
Install TAP devices into their namespaces . This is done after EMANE daemons have been started because that is their only chance to bind to the TAPs .
def installnetifs(self, do_netns=True):
        if not self.session.emane.doeventmonitor() and \
            self.session.emane.service is None:
            warntxt = "unable to publish EMANE events because the eventservice "
            warntxt += "Python bindings failed to load"
            self.session.exception(coreapi.CORE_EXCP_LEVEL_ERROR, self.name,
                                    self.objid, warntxt)
        for netif in self.netifs():
            if do_netns and "virtual" in netif.transport_type.lower():
                netif.install()
            netif.setaddrs()
            if self.session.emane.doeventmonitor():
                netif.poshook = None
                continue
            netif.poshook = self.setnemposition
            (x,y,z) = netif.node.position.get()
            self.setnemposition(netif, x, y, z)
def installnetifs ( self , do_netns = True ) : if not self . session . emane . doeventmonitor ( ) and self . session . emane . service is None : warntxt = "unable to publish EMANE events because the eventservice " warntxt += "Python bindings failed to load" self . session . exception ( coreapi . CORE_EXCP_LEVEL_ERROR , self . name , self . objid , warntxt ) for netif in self . netifs ( ) : if do_netns and "virtual" in netif . transport_type . lower ( ) : netif . install ( ) netif . setaddrs ( ) if self . session . emane . doeventmonitor ( ) : netif . poshook = None continue netif . poshook = self . setnemposition ( x , y , z ) = netif . node . position . get ( ) self . setnemposition ( netif , x , y , z )
Install TAP devices into their namespaces.
Install TAP devices into their namespaces .
''' Install TAP devices into their namespaces. This is done after
            EMANE daemons have been started, because that is their only chance
            to bind to the TAPs.
        ''' # if we are listening for EMANE events, don't generate them # at this point we register location handlers for generating # EMANE location events
self
do_netns