From d5ef82d44f8ac88245c1ebe0e7e912b29cfe648c Mon Sep 17 00:00:00 2001 From: Andy Bavier Date: Tue, 9 Feb 2010 16:23:11 +0000 Subject: [PATCH] --- sfa/plc/network.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sfa/plc/network.py b/sfa/plc/network.py index 1c204ce5..16a44676 100644 --- a/sfa/plc/network.py +++ b/sfa/plc/network.py @@ -72,7 +72,9 @@ class Node: with xml.node(id = self.idtag): with xml.hostname: xml << self.hostname - self.get_primary_iface().toxml(xml) + iface = self.get_primary_iface() + if iface: + iface.toxml(xml) if self.sliver: self.sliver.toxml(xml) -- 2.43.0