removed emane transport definitions from external configurations

This commit is contained in:
Blake J. Harnden 2018-07-12 15:28:26 -07:00
parent 3d59a68299
commit a6f2b9d7c1

View file

@ -129,7 +129,7 @@ def build_node_platform_xml(emane_manager, control_net, node, nem_id, platform_x
add_param(nem_element, platform_endpoint, config[platform_endpoint])
transport_endpoint = "transportendpoint"
add_param(nem_element, transport_endpoint, config[transport_endpoint])
else:
# build transport xml
transport_type = netif.transport_type
if not transport_type:
@ -334,6 +334,7 @@ def create_nem_xml(emane_model, config, nem_file, transport_definition, mac_defi
nem_element = etree.Element("nem", name="%s NEM" % emane_model.name)
if is_external(config):
nem_element.set("type", "unstructured")
else:
etree.SubElement(nem_element, "transport", definition=transport_definition)
etree.SubElement(nem_element, "mac", definition=mac_definition)
etree.SubElement(nem_element, "phy", definition=phy_definition)