(no commit message)
authorAndy Bavier <acb@cs.princeton.edu>
Tue, 9 Feb 2010 16:23:11 +0000 (16:23 +0000)
committerAndy Bavier <acb@cs.princeton.edu>
Tue, 9 Feb 2010 16:23:11 +0000 (16:23 +0000)
sfa/plc/network.py

index 1c204ce..16a4467 100644 (file)
@@ -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)