aboutsummaryrefslogtreecommitdiffstats
path: root/config/SampleHeat.yaml
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2016-10-17 00:48:11 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-10-17 00:48:11 +0000
commit507e8c569a699ceab085e01197a32a628c3c88d9 (patch)
treed968127732826d59b2bbd21970655998449050dd /config/SampleHeat.yaml
parent2af11e64cc8b1eb321982be9618417724d529a29 (diff)
parenteddc35b497362c0c01e612d66ed19c4d5c9dd328 (diff)
Merge "Adjust directory structure"
Diffstat (limited to 'config/SampleHeat.yaml')
-rw-r--r--config/SampleHeat.yaml36
1 files changed, 36 insertions, 0 deletions
diff --git a/config/SampleHeat.yaml b/config/SampleHeat.yaml
new file mode 100644
index 00000000..ae9f5667
--- /dev/null
+++ b/config/SampleHeat.yaml
@@ -0,0 +1,36 @@
+heat_template_version: 2014-10-16
+parameters:
+
+ private_net_name:
+ type: string
+ default: 'private_network'
+
+ availability_zone:
+ type: string
+ description: The AvailZone.
+ default: compute1
+
+resources:
+
+ private_network:
+ type: OS::Neutron::Net
+ private_subnet:
+ type: OS::Neutron::Subnet
+ properties:
+ network_id: { get_resource: private_network }
+ cidr: '10.10.17.0/24'
+ dns_nameservers: [ '8.8.8.8' ]
+ gateway_ip: '10.10.17.1'
+ allocation_pools: [ {"start":'10.10.17.2', "end": '10.10.17.200'} ]
+ router_1:
+ type: OS::Neutron::Router
+ properties:
+ external_gateway_info:
+ network: { get_param: public_network }
+ router_interface:
+ type: OS::Neutron::RouterInterface
+ properties:
+ router_id: { get_resource: router_1 }
+ subnet: { get_resource: private_subnet }
+outputs:
+ description: 'none'