e5c8d3c6509f7d05db21ba0b840bfd3db93db7e2
[parser.git] / tosca2heat / heat-translator / translator / tests / data / test_tosca_nfv_sample.yaml
1 tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
2
3 description: Template for deploying a single server with predefined properties.
4
5 topology_template:
6   node_templates:
7
8     VDU1:
9       type: tosca.nodes.nfv.VDU
10       capabilities:
11         host:
12          properties:
13            num_cpus: 2
14            disk_size: 10 GB
15            mem_size: 512 MB
16         # Guest Operating System properties
17         os:
18           properties:
19            # host Operating System image properties
20             architecture: x86_64
21             type: Linux
22             distribution: RHEL
23             version: 6.5
24       requirements:
25         - high_availability: VDU2
26
27     VDU2:
28       type: tosca.nodes.nfv.VDU
29       capabilities:
30         host:
31          properties:
32            num_cpus: 2
33            disk_size: 10 GB
34            mem_size: 512 MB
35         # Guest Operating System properties
36         os:
37           properties:
38            # host Operating System image properties
39             architecture: x86_64
40             type: Linux
41             distribution: RHEL
42             version: 6.5
43
44     CP1:
45       type: tosca.nodes.nfv.CP
46       properties:
47         ip_address: 192.168.0.55
48       requirements:
49         - virtualLink:
50             node: VL1
51 #           relationship: tosca.relationships.nfv.VirtualLinksTo
52         - virtualBinding:
53             node: VDU1
54             relationship: tosca.relationships.nfv.VirtualBindsTo
55
56     CP2:
57       type: tosca.nodes.nfv.CP
58       properties:
59         ip_address: 192.168.0.56
60       requirements:
61         - virtualLink:
62             node: VL1
63 #           relationship: tosca.relationships.nfv.VirtualLinksTo
64         - virtualBinding:
65             node: VDU2
66             relationship: tosca.relationships.nfv.VirtualBindsTo
67
68     VL1:
69       type: tosca.nodes.nfv.VL
70       properties:
71         vendor: ACME
72         cidr: '192.168.0.0/24'
73         start_ip: '192.168.0.50'
74         end_ip: '192.168.0.200'
75         gateway_ip: '192.168.0.1'
76         network_name: test_net
77         network_type: vxlan
78         segmentation_id: 100