Tweak name in network element
authorAndy Bavier <acb@cs.princeton.edu>
Tue, 16 Feb 2010 19:01:41 +0000 (19:01 +0000)
committerAndy Bavier <acb@cs.princeton.edu>
Tue, 16 Feb 2010 19:01:41 +0000 (19:01 +0000)
sfa/plc/network.py

index 8de6895..1210b72 100644 (file)
@@ -492,11 +492,10 @@ class Network:
     def toxml(self):
         xml = XMLBuilder(format = True, tab_step = "  ")
         with xml.RSpec(type=self.type):
-            name = "Public_" + self.type
             if self.slice:
-                element = xml.network(name=name, slice=self.slice.hrn)
+                element = xml.network(name=self.api.hrn, slice=self.slice.hrn)
             else:
-                element = xml.network(name=name)
+                element = xml.network(name=self.api.hrn)
                 
             with element:
                 if self.slice: