Auto Generated INFO.yaml file
[domino.git] / tosca-templates / 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     VDU2:
25       type: tosca.nodes.nfv.VDU
26       capabilities:
27         host:
28          properties:
29            num_cpus: 2
30            disk_size: 10 GB
31            mem_size: 512 MB
32         # Guest Operating System properties
33         os:
34           properties:
35            # host Operating System image properties
36             architecture: x86_64
37             type: Linux
38             distribution: RHEL
39             version: 6.5
40
41     CP1:
42       type: tosca.nodes.nfv.CP
43       properties:
44         ip_address: 192.168.0.55
45       requirements:
46         - virtualLink:
47             node: VL1
48 #           relationship: tosca.relationships.nfv.VirtualLinksTo
49         - virtualBinding:
50             node: VDU1
51             relationship: tosca.relationships.nfv.VirtualBindsTo
52
53     VL1:
54       type: tosca.nodes.nfv.VL
55       properties:
56         vendor: ACME
57         cidr: '192.168.0.0/24'
58         start_ip: '192.168.0.50'
59         end_ip: '192.168.0.200'
60         gateway_ip: '192.168.0.1'
61
62   policies:
63     - rule1:
64         type: tosca.policies.Placement
65         targets: [ VDU1, CP1, VL1 ]
66         properties:
67           region: [ nova-1 ]
68     - rule2:
69         type: tosca.policies.Placement
70         targets: [ VDU2 ]
71         properties:
72           region: [ nova-2 ]