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