summaryrefslogtreecommitdiffstats
path: root/asdc-controller/src/test/resources/resource-examples/simpleTest.yaml
blob: 8bfda2b0564de3e5c25509a3db959be3df566bae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
heat_template_version: 2013-05-23

description: >
  HOT template that creates one COR network (direct).

parameters:
  cor_direct_net_name:
    type: string
    description: Name of COR direct network
    default: testCorDirectNet
  cor_direct_net_cidr:
    type: string
    description: Direct network address (CIDR notation)
  cor_direct_net_gateway:
    type: string
    description: Direct network gateway address
  cor_direct_net_RT:
    type: string
    description: Direct network route-target (RT)
    default: testCorDirectNet
  ip_port_snmp_manager:
    type: string
    default: 162
    description: SNMP manager IP port


resources:
  cor_direct_net:
    type: file:///my_test.yaml
    properties:
      name: { get_param: cor_direct_net_name }
      route_targets: [ get_param: cor_direct_net_RT ]

  cor_direct_ip_subnet:
    type: OS::Neutron::Subnet
    properties:
      network_id: { get_resource: cor_direct_net }
      cidr: {get_param: cor_direct_net_cidr}
      gateway_ip: { get_param: cor_direct_net_gateway }