Add YAML plugin and cleanup for checkstyle
[policy/apex-pdp.git] / plugins / plugins-event / plugins-event-protocol / plugins-event-protocol-yaml / src / test / resources / yaml_in / TOSCA0.yaml
1 # https://wiki.onap.org/display/DW/VNFD+example
2 tosca_definitions_version: tosca_simple_profile_yaml_1_1
3 description: the VNFD of MyVnf
4  
5 node_types:
6   MyCompany.MyVnf.1_0.1_0:  # node type of MyVnf
7     derived_from: tosca.nodes.nfv.VNF
8     properties:
9       descriptor_id:
10         type: string
11         constraints: [ valid_values: [ b1bb0ce7-ebca-4fa7-95ed-4840d70a1177 ] ]
12         default: b1bb0ce7-ebca-4fa7-95ed-4840d70a1177
13         required: true
14       provider:
15         type: string
16         constraints: [ valid_values: [ MyCompany ] ]
17         default: MyCompany
18         required: true
19       product_name:
20         type: string
21         constraints: [ valid_values: [ MyVnf ] ]
22         default: Myvnf
23         required: true
24       software_version:
25         type: string
26         constraints: [ valid_values: [ '1.0' ] ]
27         default: '1.0'
28         required: true
29       descriptor_version:
30         type: string
31         constraints: [ valid_values: [ '1.0' ] ]
32         default: '1.0'
33         required: true
34       flavour_id:
35         type: string
36         constraints: [ valid_values: [ simple ] ]  #only one and only allowed one DF in this example
37         default: simple
38         required: true
39       flavour_description:
40         type: string
41         constraints: []
42         default: ""
43         required: true
44       vnfm_info:
45         type: list       
46         constraints: []
47         default: ""
48         required: true
49       interfaces:
50         Nfv:
51          instantiate:
52           inputs:
53             parameter_1:
54                type: string
55                required: false
56                default: value_1
57                constraints: []
58             parameter_2:
59                type: string
60                required: false
61                default: value_2
62                constraints: []
63          terminate:
64           implementation: terminate.workbook.mistral.yaml
65  
66  
67 topology_template: 
68   substitution_mappings:
69     node_type: MyCompany.MyVnf.1_0.1_0
70     requirements:
71       - virtual_link: [ Cp_2,   external_virtual_link ] # expose as external CP
72       - virtual_link: [ Cp_4,   external_virtual_link ] # expose as external CP 
73    
74   node_templates:
75     VDU_compute_1:
76       type: tosca.nodes.nfv.Vdu.Compute
77       properties:
78         name: ..
79         description: ..
80         boot_order: ..
81         nfvi_constraints: ..
82         configurable_properties:
83           additional_vnfc_configurable_properties: {}
84         vdu_profile:
85           min_number_of_instances: 1
86           max_number_of_instances: 4
87       capabilities:
88         virtual_compute:
89           properties:
90             virtual_memory:
91               virtual_mem_size: 8096 MB
92             virtual_cpu:
93               cpu_architecture: x86
94               num_virtual_cpu: 2
95               virtual_cpu_clock: 1800 MHz
96       requirements:
97         - virtual_storage: Storage_1  
98   
99     Storage_1:
100       type: tosca.nodes.nfv.Vdu.VirtualStorage
101       properties:
102         type_of_storage: ..
103         size_of_storage: 100MB
104         rdma_enabled:  ..     
105     
106     Cp_1:
107       type: tosca.nodes.nfv.VduCp
108       properties:
109         layer_protocol: ipv4
110         role: leaf
111         description: Internal connection point on an VL
112       requirements:
113         - virtual_binding: Vdu_1
114         - virtual_link: internalVl_1   
115  
116  
117     internalVl_1:
118       type: tosca.nodes.nfv.VirtualLink
119       properties:
120         connectivity_type:
121           layer_protocol: ipv4
122           flow_pattern: mesh
123         test_access: []
124         description: ..
125         vl_profile:
126           qos:
127           maxBitRateRequirements:
128           minBitRateRequirements:   
129  
130  
131     Cp_2:
132       type: tosca.nodes.nfv.VduCp
133       properties:
134         layer_protocol: ipv4
135         role: leaf
136         description: External connection point to access exteranlVl_1
137       requirements:
138         - external_virtual_link:
139         - virtual_binding: Vdu_1   
140  
141  
142     VDU_compute_2:
143       type: tosca.nodes.nfv.Vdu.Compute
144       properties:
145         name: ..
146         description: ..
147         boot_order: ..
148         nfvi_constraints: ..
149         configurable_properties:
150           additional_vnfc_configurable_properties: {}
151         vdu_profile:
152           min_number_of_instances: 2
153           max_number_of_instances: 6
154       capabilities:
155         virtual_compute:
156           properties:
157             virtual_memory:
158               virtual_mem_size: 8096 MB
159             virtual_cpu:
160               cpu_architecture: x86
161               num_virtual_cpu: 4
162               virtual_cpu_clock: 1800 MHz
163     Cp_3:
164       type: tosca.nodes.nfv.VduCp
165       properties:
166         layer_protocol: ipv4
167         role: leaf
168         description: Internal connection point on an VL
169       requirements:
170         - virtual_binding: Vdu_2
171         - virtual_link: internalVl_1  
172     Cp_4:
173       type: tosca.nodes.nfv.VduCpd
174       properties:
175         layer_protocol: ipv4
176         role: leaf
177         description: External connection point to access exteranlVl_2
178       requirements:
179         - external_virtual_link:
180         - virtual_binding: Vdu_2