remove contributors
[parser.git] / docs / parser_docs / yang2tosca / clearwater_tosca.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 description: >
3   This module defines a VNF Deployment Unit.
4
5 metadata:
6   template_name: clearwater
7   template_author: HP
8
9 dsl_definitions:
10   compute_props_host_ellis: &compute_props_host_ellis
11     num_cpu: 4
12     mem_size: 4096
13   compute_props_host_bono: &compute_props_host_bono
14     num_cpu: 3
15     mem_size: 2048
16
17 node_types:
18   tosca.nodes.compute.ellis:
19     derived_from: tosca.nodes.compute
20
21   tosca.nodes.compute.bono:
22     derived_from: tosca.nodes.compute
23
24 topology_template:
25   # a description of the topology template
26   description: >
27
28
29   inputs:
30    storage_size:
31      type: scalar-unit.size
32      default: 2048 M
33      description: The required storage resource
34
35    storage_location:
36      type: string
37      description: >
38        Block storage mount point (filesystem path).
39
40   node_templates:
41     ellis:
42       type: tosca.nodes.compute.ellis
43       capabilities:
44         host:
45           properties: *compute_props_host_ellis
46         scalable:
47           properties:
48             min_instances: 1
49             default_instances: 1
50       requirements:
51         - local_storage:
52             node: ellis_BlockStorage
53             relationship:
54               type: AttachesTo
55                 properties:
56                   location: { get_input: storage_location }
57       interfaces:
58         Standard:
59           start:
60             implementation: start.sh
61           delete:
62             implementaion: stop.sh
63           stop:
64             implementaion: shutdown.sh
65
66     ellis_BlockStorage:
67       type: tosca.nodes.BlockStorage
68       properties:
69         size: { get_input: storage_size }
70
71     bono:
72       type: tosca.nodes.compute.bono
73       capabilities:
74         host:
75           properties: *compute_props_host_bono
76         scalable:
77           properties:
78             min_instances: 3
79             default_instances: 3
80       requirements:
81         - local_storage:
82             node: bono_BlockStorage
83             relationship:
84               type: AttachesTo
85                 properties:
86                   location: { get_input: storage_location }
87       interfaces:
88         Standard:
89           start:
90             implementation: start.sh
91           delete:
92             implementaion: stop.sh
93           stop:
94             implementaion: shutdown.sh
95
96     bono_BlockStorage:
97       type: tosca.nodes.BlockStorage
98       properties:
99         size: { get_input: storage_size }
100
101     clearwater_network1:
102       type: tosca.nodes.network.Network
103       properties:
104         ip_version: 4
105
106     ellis_port1:
107       type: tosca.nodes.network.Port
108       requirements:
109         - binding:
110             node: ellis
111         - link:
112             node: clearwater_network1
113
114     clearwater_network2:
115       type: tosca.nodes.network.Network
116       properties:
117         ip_version: 4
118
119     ellis_port2:
120       type: tosca.nodes.network.Port
121       requirements:
122         - binding:
123             node: ellis
124         - link:
125             node: clearwater_network2
126
127     clearwater_network1:
128       type: tosca.nodes.network.Network
129       properties:
130         ip_version: 4
131
132     bono_port1:
133       type: tosca.nodes.network.Port
134       requirements:
135         - binding:
136             node: bono
137         - link:
138             node: clearwater_network1
139
140     clearwater_network2:
141       type: tosca.nodes.network.Network
142       properties:
143         ip_version: 4
144
145     bono_port2:
146       type: tosca.nodes.network.Port
147       requirements:
148         - binding:
149             node: bono
150         - link:
151             node: clearwater_network2