return only the rspec for the slice
[sfa.git] / sfa / plc / network.py
index 94f6e04..b3e0d05 100644 (file)
@@ -509,8 +509,9 @@ class Network:
             with element:
                 if self.slice:
                     self.slice.toxml(xml)
-                for site in self.getSites():
-                    site.toxml(xml)
+                else:
+                    for site in self.getSites():
+                        site.toxml(xml)
 
         header = '<?xml version="1.0"?>\n'
         return header + str(xml)