From bbfb607d67333d44f88059a994dbbab406cc16e7 Mon Sep 17 00:00:00 2001 From: Andy Bavier Date: Fri, 5 Feb 2010 14:26:18 +0000 Subject: [PATCH] Replace dashes with underscores to work around xmlbuilder limitation --- sfa/managers/eucalyptus/eucalyptus.rnc | 32 ++++++------- sfa/managers/eucalyptus/eucalyptus.rng | 50 ++++++++++----------- sfa/managers/eucalyptus/eucalyptus.xml | 62 +++++++++++++------------- 3 files changed, 72 insertions(+), 72 deletions(-) diff --git a/sfa/managers/eucalyptus/eucalyptus.rnc b/sfa/managers/eucalyptus/eucalyptus.rnc index 469e77d3..c2fbc20d 100644 --- a/sfa/managers/eucalyptus/eucalyptus.rnc +++ b/sfa/managers/eucalyptus/eucalyptus.rnc @@ -5,13 +5,13 @@ RSpec = element RSpec { } cloud = element cloud { attribute id { xsd:NMTOKEN }, - user-info?, + user_info?, ipv4, keypairs, images, cluster+ } -user-info = element user-info { +user_info = element user_info { credential } keypairs = element keypairs { keypair+ } @@ -26,23 +26,23 @@ image = element image { cluster = element cluster { attribute id { xsd:ID }, ipv4, - vm-types + vm_types } -vm-types = element vm-types { vm-type+ } -vm-type = element vm-type { +vm_types = element vm_types { vm_type+ } +vm_type = element vm_type { attribute name { xsd:ID }, - free-slots, - max-instances, + free_slots, + max_instances, cores, memory, - disk-space, + disk_space, request? } request = element request { instances, - kernel-image, + kernel_image, ramdisk, - disk-image, + disk_image, keypair } credential = element credential { text } @@ -52,19 +52,19 @@ type = element type { text } arch = element arch { text } state = element state { text } location = element location { text } -free-slots = element free-slots { text } -max-instances = element max-instances { text } +free_slots = element free_slots { text } +max_instances = element max_instances { text } cores = element cores { text } memory = element memory { attribute unit { xsd:NMTOKEN }, text } -disk-space = element disk-space { +disk_space = element disk_space { attribute unit { xsd:NMTOKEN }, text } -instances = element instances { text } -kernel-image = element kernel-image { +instances = element instances { xsd:unsignedInt } +kernel_image = element kernel_image { attribute id { xsd:IDREF }, empty } @@ -72,7 +72,7 @@ ramdisk = element ramdisk { attribute id { xsd:IDREF }?, empty } -disk-image = element disk-image { +disk_image = element disk_image { attribute id { xsd:IDREF }, empty } diff --git a/sfa/managers/eucalyptus/eucalyptus.rng b/sfa/managers/eucalyptus/eucalyptus.rng index 9bfe3dca..5cfc8c59 100644 --- a/sfa/managers/eucalyptus/eucalyptus.rng +++ b/sfa/managers/eucalyptus/eucalyptus.rng @@ -17,7 +17,7 @@ - + @@ -27,8 +27,8 @@ - - + + @@ -63,26 +63,26 @@ - + - - + + - + - - + + - - + + - + @@ -91,9 +91,9 @@ - + - + @@ -132,13 +132,13 @@ - - + + - - + + @@ -155,8 +155,8 @@ - - + + @@ -165,11 +165,11 @@ - + - - + + @@ -186,8 +186,8 @@ - - + + diff --git a/sfa/managers/eucalyptus/eucalyptus.xml b/sfa/managers/eucalyptus/eucalyptus.xml index 88023b56..9aca652b 100644 --- a/sfa/managers/eucalyptus/eucalyptus.xml +++ b/sfa/managers/eucalyptus/eucalyptus.xml @@ -2,9 +2,9 @@ - + foobarbaz - + 155.98.39.85 cortex @@ -26,51 +26,51 @@ 10.1.1.2 - - - 2 - 2 + + + 2 + 2 1 128 - 2 + 2 1 - + - + cortex - - - 1 - 2 + + + 1 + 2 1 256 - 5 - - - 0 - 1 + 5 + + + 0 + 1 2 512 - 10 - - - 0 - 1 + 10 + + + 0 + 1 2 1024 - 20 - - - 0 - 0 + 20 + + + 0 + 0 4 2048 - 20 - - + 20 + + -- 2.43.0