sfaadmin reg import writes on stdout if DEBUG is set
[sfa.git] / sfa / managers / eucalyptus / eucalyptus.rnc
index c2fbc20..ead2a36 100644 (file)
@@ -1,20 +1,34 @@
 start = RSpec
 RSpec = element RSpec {
-   attribute type { xsd:NMTOKEN },
-   cloud
+    attribute expires { xsd:NMTOKEN },
+    attribute generated { xsd:NMTOKEN },
+    attribute type { xsd:NMTOKEN },
+    network
 }
-cloud = element cloud {
-   attribute id { xsd:NMTOKEN },
-   user_info?,
-   ipv4,
-   keypairs,
-   images,
-   cluster+
+network = element network {
+    attribute name { xsd:NMTOKEN },
+    user_info?,
+    ipv4,
+    bundles,
+    #keypairs,
+    #images,
+    cluster+
 }
+
 user_info = element user_info { 
-   credential 
+    element credential { text }
 }
+
 keypairs = element keypairs { keypair+ }
+keypair = element keypair { text }
+
+bundles = element bundles {
+    element bundle {
+        attribute id { xsd:ID },
+        empty
+    }+
+}
+
 images = element images { image+ }
 image = element image {
    attribute id { xsd:ID },
@@ -36,18 +50,35 @@ vm_type = element vm_type {
    cores,
    memory,
    disk_space,
+   euca_instances?,
    request?
 }
+
 request = element request {
+    instances,
+    element bundle {
+        xsd:IDREF
+    }
+}
+
+oldrequest = element oldrequest {
    instances,
    kernel_image,
    ramdisk,
    disk_image,
    keypair
 }
-credential = element credential { text }
+
+euca_instances = element euca_instances {
+   euca_instance+
+}
+euca_instance = element euca_instance {
+   attribute id { xsd:ID },
+   state,
+   public_dns,
+   keypair?
+}
 ipv4 = element ipv4 { text }
-keypair = element keypair { text }
 type = element type { text }
 arch = element arch { text }
 state = element state { text }
@@ -55,6 +86,7 @@ location = element location { text }
 free_slots = element free_slots { text }
 max_instances = element max_instances { text }
 cores = element cores { text }
+public_dns = element public_dns { text }
 memory = element memory {
    attribute unit { xsd:NMTOKEN },
    text