removed issue with double loading services from core-daemon, fixed exceptions noted as not an error previously and updated code to more gracefully handle those cases, fixed issue with add_node when setting node.ype for all nodes
This commit is contained in:
parent
dc751dde2b
commit
4a2810e9b2
5 changed files with 22 additions and 32 deletions
|
@ -1152,11 +1152,7 @@ class Ns2ScriptedMobility(WayPointMobility):
|
|||
:rtype: int
|
||||
"""
|
||||
nodenum = int(nodenum)
|
||||
try:
|
||||
return self.nodemap[nodenum]
|
||||
except KeyError:
|
||||
logger.exception("error finding value in node map, ignored and returns node id")
|
||||
return nodenum
|
||||
return self.nodemap.get(nodenum, nodenum)
|
||||
|
||||
def startup(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue