From 9b1141a135a1e36e41ba8bad0c3031ebf89723b9 Mon Sep 17 00:00:00 2001 From: bharnden Date: Sun, 17 Feb 2019 10:18:23 -0800 Subject: [PATCH] fixes issue saving/loading rj45 nodes to xml --- daemon/core/xml/corexml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/core/xml/corexml.py b/daemon/core/xml/corexml.py index 36ced216..bc206165 100644 --- a/daemon/core/xml/corexml.py +++ b/daemon/core/xml/corexml.py @@ -379,7 +379,7 @@ class CoreXmlWriter(object): links = [] for node in self.session.objects.itervalues(): # network node - if isinstance(node, coreobj.PyCoreNet) and not nodeutils.is_node(node, NodeTypes.CONTROL_NET): + if isinstance(node, (coreobj.PyCoreNet, nodes.RJ45Node)) and not nodeutils.is_node(node, NodeTypes.CONTROL_NET): self.write_network(node) # device node elif isinstance(node, nodes.PyCoreNode):