Change <cloud> tag to <network>
authorAndy Bavier <acb@cs.princeton.edu>
Tue, 5 Jul 2011 19:22:45 +0000 (15:22 -0400)
committerAndy Bavier <acb@cs.princeton.edu>
Tue, 5 Jul 2011 19:22:45 +0000 (15:22 -0400)
The PlanetLab SM requires that each aggregate's RSpec
be enclosed in a <network> tag.

sfa/managers/aggregate_manager_eucalyptus.py
sfa/managers/eucalyptus/eucalyptus.rnc
sfa/managers/eucalyptus/eucalyptus.rng

index 68669bd..1b6d143 100644 (file)
@@ -345,7 +345,7 @@ class EucaRSpecBuilder(object):
         xml = self.eucaRSpec
         cloud = self.cloudInfo
         with xml.RSpec(type='eucalyptus'):
-            with xml.cloud(id=cloud['name']):
+            with xml.network(id=cloud['name']):
                 with xml.ipv4:
                     xml << cloud['ip']
                 #self.__keyPairsXML(cloud['keypairs'])
index ba9758c..bc61ce3 100644 (file)
@@ -1,9 +1,9 @@
 start = RSpec
 RSpec = element RSpec {
     attribute type { xsd:NMTOKEN },
-    cloud
+    network
 }
-cloud = element cloud {
+network = element network {
     attribute id { xsd:NMTOKEN },
     user_info?,
     ipv4,
index 51d23c6..d7a85b4 100644 (file)
@@ -8,11 +8,11 @@
       <attribute name="type">
         <data type="NMTOKEN"/>
       </attribute>
-      <ref name="cloud"/>
+      <ref name="network"/>
     </element>
   </define>
-  <define name="cloud">
-    <element name="cloud">
+  <define name="network">
+    <element name="network">
       <attribute name="id">
         <data type="NMTOKEN"/>
       </attribute>