deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 3/3] CIMI: Added more XML samples to support/cimi
Date Fri, 30 Nov 2012 09:50:21 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/support/cimi/machine.json          | 4 ++--
 server/support/cimi/machine.xml           | 9 +++++++++
 server/support/cimi/machine_from_temp.xml | 6 ++++++
 server/support/cimi/machine_template.json | 4 ++--
 server/support/cimi/machine_template.xml  | 7 +++++++
 5 files changed, 26 insertions(+), 4 deletions(-)
 create mode 100644 server/support/cimi/machine.xml
 create mode 100644 server/support/cimi/machine_from_temp.xml
 create mode 100644 server/support/cimi/machine_template.xml

diff --git a/server/support/cimi/machine.json b/server/support/cimi/machine.json
index e2564d9..edc4cdb 100644
--- a/server/support/cimi/machine.json
+++ b/server/support/cimi/machine.json
@@ -7,7 +7,7 @@
     "life": "is life"
   },
   "machineTemplate": {
-    "machineConfig": { "href": " http://localhost:3001/cimi/machine_configurations/m1-small"
},
-    "machineImage": { "href": " http://localhost:3001/cimi/machine_images/img1" }
+    "machineConfig": { "href": "http://localhost:3001/cimi/machine_configurations/m1-small"
},
+    "machineImage": { "href": "http://localhost:3001/cimi/machine_images/img1" }
   }
 }
diff --git a/server/support/cimi/machine.xml b/server/support/cimi/machine.xml
new file mode 100644
index 0000000..6242e08
--- /dev/null
+++ b/server/support/cimi/machine.xml
@@ -0,0 +1,9 @@
+<MachineCreate>
+  <name>myMachineXML123</name>
+  <description>Description of my new Machine</description>
+  <machineTemplate>
+    <machineConfig href="http://localhost:3001/cimi/machine_configurations/m1-small"/>
+    <machineImage href="http://localhost:3001/cimi/machine_images/img1"/>
+  </machineTemplate>
+  <property name="test">value</property>
+</MachineCreate>
diff --git a/server/support/cimi/machine_from_temp.xml b/server/support/cimi/machine_from_temp.xml
new file mode 100644
index 0000000..a5a8dfc
--- /dev/null
+++ b/server/support/cimi/machine_from_temp.xml
@@ -0,0 +1,6 @@
+<MachineCreate>
+  <name>myMachineXML123</name>
+  <description>Description of my new Machine</description>
+  <machineTemplate href="http://localhost:3001/cimi/machine_templates/1"/>
+  <property name="test">value</property>
+</MachineCreate>
diff --git a/server/support/cimi/machine_template.json b/server/support/cimi/machine_template.json
index a8e27ae..3f219dc 100644
--- a/server/support/cimi/machine_template.json
+++ b/server/support/cimi/machine_template.json
@@ -2,8 +2,8 @@
   "resourceURI": "http://schemas.dmtf.org/cimi/1/MachineTemplateCreate",
   "name": "myMachineDemoTemplate",
   "description": "My very loved machine template",
-  "machineConfig": { "href": " http://localhost:3001/cimi/machine_configurations/m1-xlarge"
},
-  "machineImage": { "href": " http://localhost:3001/cimi/machine_images/img3" },
+  "machineConfig": { "href": "http://localhost:3001/cimi/machine_configurations/m1-xlarge"
},
+  "machineImage": { "href": "http://localhost:3001/cimi/machine_images/img3" },
   "properties": {
     "foo": "bar",
     "life": "is life"
diff --git a/server/support/cimi/machine_template.xml b/server/support/cimi/machine_template.xml
new file mode 100644
index 0000000..85bc3b0
--- /dev/null
+++ b/server/support/cimi/machine_template.xml
@@ -0,0 +1,7 @@
+<MachineTemplateCreate>
+  <name>myXmlTestMachineTemplate1</name>
+  <description>Description of my MachineTemplate</description>
+  <property name="test">value</property>
+  <machineConfig href="http://localhost:3001/cimi/machine_configurations/m1-xlarge"/>
+  <machineImage href="http://localhost:3001/cimi/machine_images/img3"/>
+</MachineTemplateCreate>
-- 
1.8.0


Mime
View raw message