Merged new versions from NRL
This commit is contained in:
parent
65803f9334
commit
928617e613
4 changed files with 8 additions and 9 deletions
|
@ -45,8 +45,8 @@ class Emane(ConfigurableManager):
|
||||||
(SUCCESS, NOT_NEEDED, NOT_READY) = (0, 1, 2)
|
(SUCCESS, NOT_NEEDED, NOT_READY) = (0, 1, 2)
|
||||||
EVENTCFGVAR = 'LIBEMANEEVENTSERVICECONFIG'
|
EVENTCFGVAR = 'LIBEMANEEVENTSERVICECONFIG'
|
||||||
# possible self.version values
|
# possible self.version values
|
||||||
(EMANEUNK, EMANE074, EMANE081, EMANE091, EMANE092, EMANE093) = \
|
(EMANEUNK, EMANE074, EMANE081, EMANE091, EMANE092, EMANE093, EMANE101) = \
|
||||||
(0, 7, 8, 91, 92, 93)
|
(0, 7, 8, 91, 92, 93, 101)
|
||||||
DEFAULT_LOG_LEVEL = 3
|
DEFAULT_LOG_LEVEL = 3
|
||||||
|
|
||||||
def __init__(self, session):
|
def __init__(self, session):
|
||||||
|
@ -746,7 +746,7 @@ class Emane(ConfigurableManager):
|
||||||
'''
|
'''
|
||||||
for n in sorted(self._objs.keys()):
|
for n in sorted(self._objs.keys()):
|
||||||
emanenode = self._objs[n]
|
emanenode = self._objs[n]
|
||||||
nems = emanenode.buildnemxmlfiles(self)
|
emanenode.buildnemxmlfiles(self)
|
||||||
|
|
||||||
def appendtransporttonem(self, doc, nem, nodenum, ifc=None):
|
def appendtransporttonem(self, doc, nem, nodenum, ifc=None):
|
||||||
''' Given a nem XML node and EMANE WLAN node number, append
|
''' Given a nem XML node and EMANE WLAN node number, append
|
||||||
|
@ -1175,6 +1175,8 @@ def emane_version():
|
||||||
v = Emane.EMANE092
|
v = Emane.EMANE092
|
||||||
elif result.startswith('0.9.3'):
|
elif result.startswith('0.9.3'):
|
||||||
v = Emane.EMANE093
|
v = Emane.EMANE093
|
||||||
|
elif result.startswith('1.0.1'):
|
||||||
|
v = Emane.EMANE101
|
||||||
return v, result.strip()
|
return v, result.strip()
|
||||||
|
|
||||||
# set version variables for the Emane class
|
# set version variables for the Emane class
|
||||||
|
|
|
@ -124,8 +124,8 @@ class EmaneRfPipeModel(EmaneModel):
|
||||||
values = list(values)
|
values = list(values)
|
||||||
values[i] = self.emane074_fixup(values[i], 1000)
|
values[i] = self.emane074_fixup(values[i], 1000)
|
||||||
# append MAC options to macdoc
|
# append MAC options to macdoc
|
||||||
map( lambda n: mac.appendChild(e.xmlparam(macdoc, n, \
|
map(lambda n: mac.appendChild(e.xmlparam(macdoc, n, \
|
||||||
self.valueof(n, values))), macnames)
|
self.valueof(n, values))), macnames)
|
||||||
e.xmlwrite(macdoc, self.macxmlname(ifc))
|
e.xmlwrite(macdoc, self.macxmlname(ifc))
|
||||||
|
|
||||||
phydoc = EmaneUniversalModel.getphydoc(e, self, values, phynames)
|
phydoc = EmaneUniversalModel.getphydoc(e, self, values, phynames)
|
||||||
|
|
|
@ -11,8 +11,6 @@ vnet.py: PyCoreNet and LxBrNet classes that implement virtual networks using
|
||||||
Linux Ethernet bridging and ebtables rules.
|
Linux Ethernet bridging and ebtables rules.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
import os, sys, threading, time, subprocess
|
import os, sys, threading, time, subprocess
|
||||||
|
|
||||||
from core.api import coreapi
|
from core.api import coreapi
|
||||||
|
@ -347,7 +345,6 @@ class LxBrNet(PyCoreNet):
|
||||||
''' Configure link parameters by applying tc queuing disciplines on the
|
''' Configure link parameters by applying tc queuing disciplines on the
|
||||||
interface.
|
interface.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
if devname is None:
|
if devname is None:
|
||||||
devname = netif.localname
|
devname = netif.localname
|
||||||
tc = [TC_BIN, "qdisc", "replace", "dev", devname]
|
tc = [TC_BIN, "qdisc", "replace", "dev", devname]
|
||||||
|
|
|
@ -91,7 +91,7 @@ class NrlNhdp(NrlService):
|
||||||
|
|
||||||
servicenames = map(lambda x: x._name, services)
|
servicenames = map(lambda x: x._name, services)
|
||||||
if "SMF" in servicenames:
|
if "SMF" in servicenames:
|
||||||
cmd += " -flooding ecds"
|
cmd += " -flooding ecds-etx sticky"
|
||||||
cmd += " -smfClient %s_smf" % node.name
|
cmd += " -smfClient %s_smf" % node.name
|
||||||
|
|
||||||
netifs = filter(lambda x: not getattr(x, 'control', False), \
|
netifs = filter(lambda x: not getattr(x, 'control', False), \
|
||||||
|
|
Loading…
Reference in a new issue