From 552d8f60d2137eef99551314a3cffd39f7a8e39e Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Sun, 4 Oct 2020 18:53:31 -0700 Subject: [PATCH] daemon: change to generate transport definition for external transports, which allows emanegentransport to function properly --- daemon/core/xml/emanexml.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/daemon/core/xml/emanexml.py b/daemon/core/xml/emanexml.py index 68f3fd69..c0d5462b 100644 --- a/daemon/core/xml/emanexml.py +++ b/daemon/core/xml/emanexml.py @@ -192,12 +192,13 @@ def build_platform_xml( add_param(nem_element, platform_endpoint, config[platform_endpoint]) transport_endpoint = "transportendpoint" add_param(nem_element, transport_endpoint, config[transport_endpoint]) - else: - transport_name = transport_file_name(iface) - transport_element = etree.SubElement( - nem_element, "transport", definition=transport_name - ) - add_param(transport_element, "device", iface.name) + + # define transport element + transport_name = transport_file_name(iface) + transport_element = etree.SubElement( + nem_element, "transport", definition=transport_name + ) + add_param(transport_element, "device", iface.name) # add nem element to platform element platform_element.append(nem_element)