]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Quantum template to demonstrate floatingip.
authorSteve Baker <sbaker@redhat.com>
Tue, 6 Nov 2012 02:40:38 +0000 (15:40 +1300)
committerSteve Baker <sbaker@redhat.com>
Tue, 6 Nov 2012 02:40:38 +0000 (15:40 +1300)
templates/Quantum_floating.template [new file with mode: 0644]

diff --git a/templates/Quantum_floating.template b/templates/Quantum_floating.template
new file mode 100644 (file)
index 0000000..3aedbbc
--- /dev/null
@@ -0,0 +1,52 @@
+{
+  "AWSTemplateFormatVersion" : "2010-09-09",
+
+  "Description" : "Template to test Quantum resources",
+
+  "Parameters" : {
+
+    "external_network" : {
+      "Description" : "UUID of an existing external network",
+      "Type" : "String"
+    },
+    "internal_network" : {
+      "Description" : "UUID of an existing internal network",
+      "Type" : "String"
+    },
+    "internal_subnet" : {
+      "Description" : "UUID of an existing internal subnet",
+      "Type" : "String"
+    }
+  },
+
+  "Resources" : {
+
+    "port_floating": {
+      "Type": "OS::Quantum::Port",
+      "Properties": {
+        "network_id": { "Ref" : "internal_network" },
+        "fixed_ips": [{
+          "subnet_id": { "Ref" : "internal_subnet" },
+          "ip_address": "10.0.0.10"
+        }]
+      }
+    },
+
+    "floating_ip": {
+      "Type": "OS::Quantum::FloatingIP",
+      "Properties": {
+        "floating_network_id": { "Ref" : "external_network" }
+      }
+    },
+
+    "floating_ip_assoc": {
+      "Type": "OS::Quantum::FloatingIPAssociation",
+      "Properties": {
+        "floatingip_id": { "Ref" : "floating_ip" },
+        "port_id": { "Ref" : "port_floating" }
+      }
+    }
+  },
+  "Outputs" : {
+  }
+}