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