Bug: there is not segmentation_id in resource of
[parser.git] / tosca2heat / heat-translator / translator / tests / data / hot_output / hot_nfv_sample.yaml
1 heat_template_version: 2013-05-23
2
3 description: >
4   Template for deploying a single server with predefined properties.
5
6 parameters: {}
7 resources:
8   VDU1:
9     type: OS::Nova::Server
10     properties:
11       flavor: m1.medium
12       image: rhel-6.5-test-image
13       networks:
14       - port: { get_resource: CP1 }
15       user_data_format: SOFTWARE_CONFIG
16     depends_on:
17       - VDU2
18
19   VDU2:
20     type: OS::Nova::Server
21     properties:
22       flavor: m1.medium
23       image: rhel-6.5-test-image
24       networks:
25       - port: { get_resource: CP2 }
26       user_data_format: SOFTWARE_CONFIG
27
28   CP1:
29     type: OS::Neutron::Port
30     properties:
31       fixed_ips:
32         - ip_address: '192.168.0.55'
33       network: { get_resource: VL1 }
34
35   CP2:
36     type: OS::Neutron::Port
37     properties:
38       fixed_ips:
39         - ip_address: '192.168.0.56'
40       network: { get_resource: VL1 }
41
42   VL1:
43     type: OS::Neutron::Net
44     properties:
45       name: test_net
46       value_specs:
47         provider:network_type: vxlan
48         provider:segmentation_id: 100
49
50   VL1_subnet:
51     type: OS::Neutron::Subnet
52     properties:
53       ip_version: 4
54       allocation_pools:
55       - end: 192.168.0.200
56         start: 192.168.0.50
57       gateway_ip: 192.168.0.1
58       cidr: 192.168.0.0/24
59       network: { get_resource: VL1 }
60
61 outputs: {}
62