fix tosca template bugs
[modeling/etsicatalog.git] / catalog / pub / utils / toscaparser / testdata / vnf / vSBC / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_profile_yaml_1_1
2 description: the VNFD of Huawei SBC
3
4 node_types:
5   org.openecomp.resource.vfc.Huawei.SBC.18.1:  
6     derived_from: tosca.nodes.nfv.VNF
7     properties:
8       descriptor_id:
9         type: string
10         constraints: 
11         - valid_values: 
12           - b1bb0ce7-ebca-4fa7-95ed-4840d70a1177
13         default: b1bb0ce7-ebca-4fa7-95ed-4840d70a1177
14       provider:
15         type: string
16         constraints:
17         - valid_values:
18           - Huawei
19         default: Huawei
20       product_name:
21         type: string
22         constraints:
23         - valid_values:
24           - SBC
25         default: SBC
26       software_version:
27         type: string
28         constraints:
29         - valid_values:
30           - 18
31         default: 18
32       descriptor_version:
33         type: string
34         constraints:
35         - valid_values:
36           - 1.0
37         default: 1.0
38       flavour_id:
39         type: string
40         constraints:
41         - valid_values:
42           - simple
43         default: simple   
44 topology_template: 
45   node_templates:
46     SBC_VNF:
47       type: org.openecomp.resource.vfc.Huawei.SBC.18.1
48       properties:
49       descriptor_id: b1bb0ce7-ebca-4fa7-95ed-4840d70a1177
50       provider: Huawei
51       product_name: SBC
52       software_version: '1.0'
53       descriptor_version: '1.0'
54       flavour_id: simple 
55       requirements:
56       - virtual_link:
57           capability: tosca.capabilities.nfv.VirtualLinkable
58           node: LBU_ACCESS
59       - virtual_link:
60           capability: tosca.capabilities.nfv.VirtualLinkable
61           node: HRU_ACCESS
62       
63     LBU:
64       type: tosca.nodes.nfv.Vdu.Compute
65       properties:
66         name: LBU
67         description: LBU
68         configurable_properties: 
69           test: {"additional_vnfc_configurable_properties":{"aaa":"1"}}
70         vdu_profile:
71           min_number_of_instances: 1
72           max_number_of_instances: 4
73       capabilities:
74         virtual_compute:
75           properties:
76             virtual_memory:
77               virtual_mem_size: 8096 MB
78             virtual_cpu:
79               cpu_architecture: x86
80               num_virtual_cpu: 2
81               virtual_cpu_clock: 1800 MHz
82       requirements:
83       - virtual_storage:
84           capability: tosca.capabilities.nfv.VirtualStorage
85           node: LBU_Storage        
86   
87     LBU_Storage:
88       type: tosca.nodes.nfv.Vdu.VirtualStorage
89       properties:
90         type_of_storage: LBU_Storage
91         size_of_storage: 4 GB
92         rdma_enabled:  true     
93
94     LBU_ACCESS_CP:
95       type: tosca.nodes.nfv.VduCp
96       properties:
97         layer_protocol: [ ipv4 ]
98         role: leaf
99         description: External connection point to access LBU_access
100       requirements:
101       - virtual_link:
102           capability: tosca.capabilities.nfv.VirtualLinkable
103           node: LBU_ACCESS
104       - virtual_binding: 
105           capability: tosca.capabilities.nfv.VirtualBindable
106           node: LBU   
107     
108     LBU_ACCESS:
109       type: tosca.nodes.nfv.VnfVirtualLink
110       properties:
111         connectivity_type:
112           layer_protocol: [ ipv4 ]
113           flow_pattern: mesh
114         description: access network for LBU
115         vl_profile:
116           cidr: 192.168.1.24/24
117           networkName: LBU_ACCESS
118           startIp: 192.168.1.1
119           endIp: 192.168.1.10
120           gatewayIp: 192.168.1.0
121           segmentationId: 4000
122           physicalNetwork: physicalNetwork
123           networkType: VLAN
124           dhcpEnabled: true
125           vlanTransparent: false
126
127     HRU:
128       type: tosca.nodes.nfv.Vdu.Compute
129       properties:
130         name: HRU
131         description: HRU
132         configurable_properties: 
133           test: {"additional_vnfc_configurable_properties":{"bbb":"1"}}
134         vdu_profile:
135           min_number_of_instances: 1
136           max_number_of_instances: 4
137       capabilities:
138         virtual_compute:
139           properties:
140             virtual_memory:
141               virtual_mem_size: 8096 MB
142             virtual_cpu:
143               cpu_architecture: x86
144               num_virtual_cpu: 3
145               virtual_cpu_clock: 1800 MHz
146       requirements:
147       - virtual_storage:
148           capability: tosca.capabilities.nfv.VirtualStorage
149           node: HRU_Storage  
150   
151     HRU_Storage:
152       type: tosca.nodes.nfv.Vdu.VirtualStorage
153       properties:
154         type_of_storage: HRU_Storage
155         size_of_storage: 12 GB
156         rdma_enabled:  true     
157
158     HRU_ACCESS_CP:
159       type: tosca.nodes.nfv.VduCp
160       properties:
161         layer_protocol: [ ipv4 ]
162         role: leaf
163         description: External connection point to access HRU_access
164       requirements:
165       - virtual_link:
166           capability: tosca.capabilities.nfv.VirtualLinkable
167           node: HRU_ACCESS
168       - virtual_binding: 
169           capability: tosca.capabilities.nfv.VirtualBindable
170           node: HRU   
171     
172     HRU_ACCESS:
173       type: tosca.nodes.nfv.VnfVirtualLink
174       properties:
175         connectivity_type:
176           layer_protocol: [ ipv4 ]
177           flow_pattern: mesh
178         description: access network for HRU
179         vl_profile:
180           cidr: 192.168.1.24/24
181           networkName: HRU_ACCESS
182           startIp: 192.168.2.1
183           endIp: 192.168.2.10
184           gatewayIp: 192.168.2.0
185           segmentationId: 3000
186           physicalNetwork: physicalNetwork
187           networkType: VLAN
188           dhcpEnabled: true
189           vlanTransparent: false