daemon: Add support for EMANE 1.0.1.

This commit is contained in:
Tom Goff 2016-09-05 17:02:59 -04:00
parent 88e285f016
commit f03311b50a

View file

@ -45,8 +45,8 @@ class Emane(ConfigurableManager):
(SUCCESS, NOT_NEEDED, NOT_READY) = (0, 1, 2)
EVENTCFGVAR = 'LIBEMANEEVENTSERVICECONFIG'
# possible self.version values
(EMANEUNK, EMANE074, EMANE081, EMANE091, EMANE092, EMANE093) = \
(0, 7, 8, 91, 92, 93)
(EMANEUNK, EMANE074, EMANE081, EMANE091, EMANE092, EMANE093, EMANE101) = \
(0, 7, 8, 91, 92, 93, 101)
DEFAULT_LOG_LEVEL = 3
def __init__(self, session):
@ -1175,6 +1175,8 @@ def emane_version():
v = Emane.EMANE092
elif result.startswith('0.9.3'):
v = Emane.EMANE093
elif result.startswith('1.0.1'):
v = Emane.EMANE101
return v, result.strip()
# set version variables for the Emane class