Merge "Add test case description and modify task file for TC042"
[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                 storage_location:
34                         type:string
35                         description:>
36                                 Block storage mount point (filesystem path).
37         node_templates:
38                 ellis:
39                         type:tosca.nodes.Compute
40                         capabilities:
41                                 os:
42                                         properties:
43                                                 architecture:
44                                                 type:
45                                                 distribution:
46                                                 version:
47                                 host:
48                                         properties:*compute_props_host_ellis
49                                 scalable:
50                                         properties:
51                                                 min_instances:1
52                                                 default_instances:1
53                         requirements:
54                                 - local_storage:
55                                         node:ellis_BlockStorage
56                                                 relationship:
57                                                         type:AttachesTo
58                                                         properties:
59                                                                 location:{ get_input:storage_location }
60                         interfaces:
61                                 Standard:
62                                         start:
63                                                 implementation:start.sh
64                                         delete:
65                                                 implementaion:stop.sh
66                                         stop:
67                                                 implementaion:shutdown.sh
68                 ellis_BlockStorage:
69                         type:tosca.nodes.BlockStorage
70                         properties:
71                                 size:{ get_input:storage_size }
72                 bono:
73                         type:tosca.nodes.Compute
74                         capabilities:
75                                 os:
76                                         properties:
77                                                 architecture:
78                                                 type:
79                                                 distribution:
80                                                 version:
81                                 host:
82                                         properties:*compute_props_host_bono
83                                 scalable:
84                                         properties:
85                                                 min_instances:3
86                                                 default_instances:3
87                         requirements:
88                                 - local_storage:
89                                         node:bono_BlockStorage
90                                                 relationship:
91                                                         type:AttachesTo
92                                                         properties:
93                                                                 location:{ get_input:storage_location }
94                         interfaces:
95                                 Standard:
96                                         start:
97                                                 implementation:start.sh
98                                         delete:
99                                                 implementaion:stop.sh
100                                         stop:
101                                                 implementaion:shutdown.sh
102                 bono_BlockStorage:
103                         type:tosca.nodes.BlockStorage
104                         properties:
105                                 size:{ get_input:storage_size }
106         clearwater_network1:
107                         type:tosca.nodes.network.Network
108                         properties:
109                         ip_version:4
110         ellis_port1:
111                         type:tosca.nodes.network.Port
112                         requirements:
113                                 - binding:
114                                         node:ellis
115                                 - link:
116                                          node:clearwater_network1
117         clearwater_network2:
118                         type:tosca.nodes.network.Network
119                         properties:
120                         ip_version:4
121         ellis_port2:
122                         type:tosca.nodes.network.Port
123                         requirements:
124                                 - binding:
125                                         node:ellis
126                                 - link:
127                                          node:clearwater_network2
128         clearwater_network1:
129                         type:tosca.nodes.network.Network
130                         properties:
131                         ip_version:4
132         bono_port1:
133                         type:tosca.nodes.network.Port
134                         requirements:
135                                 - binding:
136                                         node:bono
137                                 - link:
138                                          node:clearwater_network1
139         clearwater_network2:
140                         type:tosca.nodes.network.Network
141                         properties:
142                         ip_version:4
143         bono_port2:
144                         type:tosca.nodes.network.Port
145                         requirements:
146                                 - binding:
147                                         node:bono
148                                 - link:
149                                          node:clearwater_network2