Initial OpenECOMP MSO commit
[so.git] / asdc-controller / src / test / resources / resource-examples / network.yaml
1 heat_template_version: 2013-05-23
2
3 description: >
4   HOT template that creates one COR network (direct).
5
6 parameters:
7   cor_direct_net_name:
8     type: string
9     description: Name of COR direct network
10   cor_direct_net_cidr:
11     type: string
12     description: Direct network address (CIDR notation)
13   cor_direct_net_gateway:
14     type: string
15     description: Direct network gateway address
16   cor_direct_net_RT:
17     type: string
18     description: Direct network route-target (RT)
19
20 resources:
21   cor_direct_net:
22     type: OS::Contrail::VirtualNetwork
23     properties:
24       name: { get_param: cor_direct_net_name }
25       route_targets: [ get_param: cor_direct_net_RT ]
26
27   cor_direct_ip_subnet:
28     type: OS::Neutron::Subnet
29     properties:
30       network_id: { get_resource: cor_direct_net }
31       cidr: {get_param: cor_direct_net_cidr}
32       gateway_ip: { get_param: cor_direct_net_gateway }