ActivitySpec - Correcting logger messages
[sdc.git] / common / openecomp-sdc-artifact-generator-lib / openecomp-sdc-artifact-generator-test / src / main / resources / service_vmme_template_DupVFUUID.yml
1 tosca_definitions_version: tosca_simple_profile_for_ecomp_1_0
2
3 description: Service Template for deploing MME Service
4
5 metadata:
6   invariantUUID: e255f20c-5331-4245-9ad5-8861a73080b7
7   UUID: 7787da18-7516-40cf-bec0-ebd4202c60f0
8   name: vMME_Service
9   description: vMME_Service
10   type: Service
11   category: Mobility
12   ecompNaming: false
13   homing: false
14
15 imports:
16   vmmeToscaTemplate:
17     file: vf_vmme_template_1.yml
18     
19 topology_template:
20
21   inputs:    
22     mme_vf_instance_name:
23       type: string
24       description: VF instance name
25     mme_vf_deployment_node:
26       type: string
27       description: The target LCP node for deployment of this VF instance
28     gtp_net_network_name:
29       type: string
30       description: The GTP network route targets
31       default: MME-24474-Ericsson-WTC-lab_gn_GTP_net_1 # HEAT ENV
32     gtp_net_route_targets:
33       type: string
34       description: The GTP network route targets
35       default: "13979:105715" # HEAT ENV
36     gtp_net_cidr:
37       type: string
38       description: The GTP network cidr
39       default: 107.243.37.64/27 # HEAT ENV
40     gtp_net_gateway_ip:
41       type: string
42       description: The GTP network gateway
43       default: 107.243.37.65 # HEAT ENV
44     gtp_net_start_ip:
45       type: string
46       description: The GTP network start ip
47       default: 107.243.37.67 # HEAT ENV
48     gtp_net_end_ip:
49       type: string
50       description: The GTP network end ip
51       default: 107.243.37.94 # HEAT ENV
52      # more inputs were removed for brevity 
53       
54   node_templates:
55
56     mme: # vMME VNF
57       type: org.openecomp.resource.vf.vmme
58
59       metadata:
60           invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22
61           UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc
62           version: 1.0
63           name: vMME_VF
64           description: vMME_VF
65           type: VF
66           category: Application L4+
67           subcategory: Firewall
68           vendor: Ericsson
69
70       properties:
71         vf_ecomp_name: false
72         vf_instance_name: { get_input: vf_instance_name }
73         vf_homing: false
74         vf_deployment_node: { get_input: vf_deployment_node }
75
76       requirements:
77         - vlc1_sctp_a.link:
78               capability: tosca.capabilities.network.Bindable
79               node: sctp_a_net
80               relationship: tosca.relationships.network.BindsTo
81         - vlc1_sctp_b.link:
82               capability: tosca.capabilities.network.Bindable
83               node: sctp_b_net
84               relationship: tosca.relationships.network.BindsTo
85         - vlc1_gtp_net.link:
86               capability: tosca.capabilities.network.Bindable
87               node: gtp_net
88               relationship: tosca.relationships.network.BindsTo
89
90
91     mme1: # vMME VNF1
92       type: org.openecomp.resource.vf.vmme
93
94       metadata:
95           invariantUUID: b8643c59-e2c2-4f86-880d-571d4d9d5d22
96           UUID: b020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc
97           version: 1.0
98           name: vMME_VF2
99           description: vMME_VF2
100           type: VF
101           category: Application L4+
102           subcategory: Firewall
103           vendor: Ericsson
104
105       properties:
106         vf_ecomp_name: false
107         vf_instance_name: { get_input: vf_instance_name }
108         vf_homing: false
109         vf_deployment_node: { get_input: vf_deployment_node }
110
111       requirements:
112         - vlc1_sctp_a.link:
113               capability: tosca.capabilities.network.Bindable
114               node: sctp_a_net
115               relationship: tosca.relationships.network.BindsTo
116         - vlc1_sctp_b.link:
117               capability: tosca.capabilities.network.Bindable
118               node: sctp_b_net
119               relationship: tosca.relationships.network.BindsTo
120         - vlc1_gtp_net.link:
121               capability: tosca.capabilities.network.Bindable
122               node: gtp_net
123               relationship: tosca.relationships.network.BindsTo
124
125  
126      
127   # Virtual Links (Networks)
128   
129     gtp_net:
130       type: abc.openecomp.resource.vl.VL
131       metadata:
132         invariantUUID: ab2995c59-ff34-4f86-a60d-371d4d9d1896
133         UUID: 101a0ed2e-a12d-ff20-004e-cc7af4daffc3
134         version: 1.0
135         name: GTPNet
136         description: GTP External Network
137         type: VL
138         category: VL
139         vendor: AT&T
140       properties:
141         network_type: Tenant_Layer_3 
142         network_technology: Contrail
143         network_ecomp_name: false
144         network_homing: false
145         network_deployment_node: { get_input : network_deployment_node }
146         contrail_virtual_network:
147           network_name: {get_input: gtp_net_network_name}
148           route_targets: {get_input: gtp_net_route_targets}
149         network_id:
150         layer_protocol: IP
151         flow_pattern: E-LAN 
152         test_access: none
153         l3_access_parameters:
154           ip_version: 4
155           cidr: {get_input: gtp_net_cidr}
156           gateway_ip: {get_input: gtp_net_gateway_ip}
157           start_ip: {get_input: gtp_net_start_ip}
158           end_ip: {get_input: gtp_net_end_ip}
159     
160     sctp_a_net:
161       type: abc.openecomp.resource.vl.VL
162       metadata:
163         invariantUUID: 29205c59-1111-4f86-880d-371d4d9dc999
164         UUID: 1890ed2e-abcd-3f20-124e-cc7af4da4321
165         version: 1.0
166         name: SCTPANet
167         description: SCTP A External Network
168         type: VL
169         category: VL
170         vendor: AT&T
171       properties:
172         network_type: Tenant_Layer_3
173         network_technology: Contrail
174         network_ecomp_name: false
175         network_homing: false
176         network_deployment_node: { get_input : network_deployment_node }
177         contrail_virtual_network:
178           network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPA_net_1
179           route_targets: 13979:105717
180         layer_protocol: IP
181         flow_pattern: E-LAN
182         test_access: none
183         l3_access_parameters:
184           ip_version: 4
185           cidr: 107.243.37.0/27 # HEAT ENV
186           gateway_ip: 107.243.37.1 # HEAT ENV
187           start_ip: 107.243.37.3 # HEAT ENV
188           end_ip: 107.243.37.30 # HEAT ENV
189       
190     sctp_b_net:
191       type: abc.openecomp.resource.vl.VL
192       metadata:
193         invariantUUID: 89595c59-2134-4f86-880d-371d4d9d12a6
194         UUID: 1af0ed2e-abcd-3f20-834e-cc7af4dafc45
195         version: 1.0
196         name: SCTPBNet
197         description: SCTP B External Network
198         type: VL
199         category: VL
200         vendor: AT&T
201       properties:
202         network_type: Tenant_Layer_3
203         network_technology: Contrail
204         network_ecomp_name: false
205         network_homing: false
206         network_deployment_node: { get_input : network_deployment_node }
207         contrail_virtual_network:
208           network_name: MME-24474-Ericsson-WTC-lab_gn_SCTPB_net_1
209           route_targets: 13979:105719
210         network_id:
211         layer_protocol: IP
212         flow_pattern: E-LAN
213         test_access: none
214         l3_access_parameters:
215           ip_version: 4
216           cidr: 107.243.37.32/24 # HEAT ENV
217           gateway_ip: 107.243.37.33 # HEAT ENV
218           start_ip: 107.243.37.35 # HEAT ENV
219           end_ip: 107.243.37.62 # HEAT ENV
220       
221   groups:
222
223     external_networks: # vMME_External_Network
224       type: org.openecomp.groups.externalNetworks
225       properties:
226         contrail_service_instance: true # from HEAT
227         availability_zone_count: 1 # from HEAT
228               
229       members: [ sctp_a_net, sctp_b_net, gtp_net ]