updated emane tests to use mdr models for the nodes, add a couple extra logs
This commit is contained in:
parent
777e19de93
commit
336702a056
4 changed files with 16 additions and 12 deletions
|
@ -607,8 +607,7 @@ class CoreRequestHandler(SocketServer.BaseRequestHandler):
|
|||
self.session.options, "enablerj45") and self.session.options.enablerj45 == "0":
|
||||
class_args["start"] = False
|
||||
|
||||
# this instantiates an object of class nodecls,
|
||||
# creating the node or network
|
||||
# this instantiates an object of class nodecls, creating the node or network
|
||||
node = self.session.add_object(cls=node_class, objid=node_id, name=node_name, **class_args)
|
||||
if x_position is not None and y_position is not None:
|
||||
node.setposition(x_position, y_position, None)
|
||||
|
@ -628,6 +627,7 @@ class CoreRequestHandler(SocketServer.BaseRequestHandler):
|
|||
model = "router"
|
||||
node.type = model
|
||||
services_str = message.get_tlv(NodeTlvs.SERVICES.value)
|
||||
logger.info("setting model (%s) with services (%s)", model, services_str)
|
||||
self.session.services.addservicestonode(node, model, services_str)
|
||||
|
||||
# boot nodes if they are added after runtime (like
|
||||
|
|
|
@ -228,6 +228,7 @@ class CoreServices(ConfigurableManager):
|
|||
:return: nothing
|
||||
"""
|
||||
if services_str is not None:
|
||||
logger.info("setting node specific services: %s", services_str)
|
||||
services = services_str.split("|")
|
||||
for name in services:
|
||||
s = ServiceManager.get(name)
|
||||
|
@ -238,6 +239,7 @@ class CoreServices(ConfigurableManager):
|
|||
s = self.getcustomservice(node.objid, s)
|
||||
node.addservice(s)
|
||||
else:
|
||||
logger.info("setting default services for node (%s) type (%s)", node.objid, nodetype)
|
||||
services = self.getdefaultservices(nodetype)
|
||||
for s in services:
|
||||
logger.info("adding default service %s to node %s", s._name, node.name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue