daemon/core/emane/emane.py
def buildplatformxmltransportentry(self, doc, n, ifc):
        ''' Build the transport definition that goes into the platform.xml file.
        This returns an XML element that will added to the nem definition.
        This default method supports raw and virtual transport types, but may be
        overriden by a model to support the e.g. pluggable virtual transport.
        n is the EmaneNode.
        '''
        ttype = ifc.transport_type
        if not ttype:
            self.session.info("warning: %s interface type unsupported!" % ifc.name)
            ttype = "raw"
        trans = doc.createElement("transport")
        trans.setAttribute("definition", n.transportxmlname(ttype))
        if self.session.emane.version < self.session.emane.EMANE092:
            trans.setAttribute("group", "1")
        param = doc.createElement("param")
        param.setAttribute("name", "device")
        if ttype == "raw":
            # raw RJ45 name e.g. 'eth0'
            param.setAttribute("value", ifc.name)
        else:
            # virtual TAP name e.g. 'n3.0.17'
            param.setAttribute("value", ifc.localname)
            if self.session.emane.version > self.session.emane.EMANE091:
                param.setAttribute("value", ifc.name)

        trans.appendChild(param)
        return trans
 Build the transport definition that goes into the platform.xml file.
        This returns an XML element that will added to the nem definition.
        This default method supports raw and virtual transport types, but may be
        overriden by a model to support the e.g. pluggable virtual transport.
        n is the EmaneNode.
        
Build the transport definition that goes into the platform.xml file.
This returns an XML element that will added to the nem definition.
This default method supports raw and virtual transport types, but may be
overriden by a model to support the e.g. pluggable virtual transport.
n is the EmaneNode.
Build the transport definition that goes into the platform . xml file . This returns an XML element that will added to the nem definition . This default method supports raw and virtual transport types but may be overriden by a model to support the e . g . pluggable virtual transport . n is the EmaneNode .
def buildplatformxmltransportentry(self, doc, n, ifc):
        ttype = ifc.transport_type
        if not ttype:
            self.session.info("warning: %s interface type unsupported!" % ifc.name)
            ttype = "raw"
        trans = doc.createElement("transport")
        trans.setAttribute("definition", n.transportxmlname(ttype))
        if self.session.emane.version < self.session.emane.EMANE092:
            trans.setAttribute("group", "1")
        param = doc.createElement("param")
        param.setAttribute("name", "device")
        if ttype == "raw":
            param.setAttribute("value", ifc.name)
        else:
            param.setAttribute("value", ifc.localname)
            if self.session.emane.version > self.session.emane.EMANE091:
                param.setAttribute("value", ifc.name)
        trans.appendChild(param)
        return trans
def buildplatformxmltransportentry ( self , doc , n , ifc ) : ttype = ifc . transport_type if not ttype : self . session . info ( "warning: %s interface type unsupported!" % ifc . name ) ttype = "raw" trans = doc . createElement ( "transport" ) trans . setAttribute ( "definition" , n . transportxmlname ( ttype ) ) if self . session . emane . version < self . session . emane . EMANE092 : trans . setAttribute ( "group" , "1" ) param = doc . createElement ( "param" ) param . setAttribute ( "name" , "device" ) if ttype == "raw" : param . setAttribute ( "value" , ifc . name ) else : param . setAttribute ( "value" , ifc . localname ) if self . session . emane . version > self . session . emane . EMANE091 : param . setAttribute ( "value" , ifc . name ) trans . appendChild ( param ) return trans
Build the transport definition that goes into the platform.xml file.
Build the transport definition that goes into the platform . xml file .
''' Build the transport definition that goes into the platform.xml file.
        This returns an XML element that will added to the nem definition.
        This default method supports raw and virtual transport types, but may be
        overriden by a model to support the e.g. pluggable virtual transport.
        n is the EmaneNode.
        ''' # raw RJ45 name e.g. 'eth0' # virtual TAP name e.g. 'n3.0.17'
self
doc
n
ifc