[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / contrail2serviceinstance / oneServiceInstance / expectedoutputfiles / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     protected_net:
12       hidden: false
13       immutable: false
14       type: string
15     service_policy_name:
16       hidden: false
17       immutable: false
18       type: string
19       description: Policy Name
20       default: MNS-25180-L-02Shared_policy_direct_fw_protected_oam_1
21     oam_direct_net_id:
22       hidden: false
23       immutable: false
24       type: string
25       description: Name of private network to be created
26     st_static_routes_list:
27       hidden: false
28       immutable: false
29       type: string
30       description: List of static routes enabled-disabled
31       default: True,True,True,True
32     st_type:
33       hidden: false
34       immutable: false
35       type: string
36       description: service type
37       default: firewall
38     st_service_interface_type_list:
39       hidden: false
40       immutable: false
41       type: string
42       description: List of interface types
43       default: management,left,right,other
44     oam_protected_net_id:
45       hidden: false
46       immutable: false
47       type: string
48       description: Name of private network to be created
49     st_mode:
50       hidden: false
51       immutable: false
52       type: string
53       description: service mode
54       default: in-network-nat
55     static_prefix_3_1:
56       hidden: false
57       immutable: false
58       type: string
59       description: prefix for static route
60       default: 107.239.80.0/21
61     oam_hsl_net_id:
62       hidden: false
63       immutable: false
64       type: string
65       description: Name of private network to be created
66     start_dst_ports:
67       hidden: false
68       immutable: false
69       type: float
70       description: Start of dst port
71       default: -1
72     st_scaling:
73       hidden: false
74       immutable: false
75       type: string
76       description: Indicates whether service scaling is enabled
77       default: 'True'
78     service_instance_name:
79       hidden: false
80       immutable: false
81       type: string
82       description: service instance name
83     max_num_fw_instances:
84       hidden: false
85       immutable: false
86       type: float
87       description: maximum number of firewall instances for scaling
88       default: 8
89     start_src_ports:
90       hidden: false
91       immutable: false
92       type: float
93       description: Start of src port
94       default: -1
95     availability_zone:
96       hidden: false
97       immutable: false
98       type: string
99       description: availability zone in form of Zone:Host
100     service_policy_direction:
101       hidden: false
102       immutable: false
103       type: string
104       description: Direction of Policy
105       default: <>
106     st_flavor_name:
107       hidden: false
108       immutable: false
109       type: string
110       description: Flavor
111       default: lc.medium
112     st_name:
113       hidden: false
114       immutable: false
115       type: string
116       description: service template name or ID
117       default: MNS-25180-L-02Shared_oam_fw_template_1
118     st_availability_zone_enable_flag:
119       hidden: false
120       immutable: false
121       type: string
122       description: service template availablity_zone feature enable flag
123       default: 'True'
124     st_image:
125       hidden: false
126       immutable: false
127       type: string
128       description: Name of the image
129       default: NIMBUS_SRX_151X49-D303
130     st_shared_ip_list:
131       hidden: false
132       immutable: false
133       type: string
134       description: List of shared ip enabled-disabled
135       default: False,True,False,False
136     oam_mgmt_net_id:
137       hidden: false
138       immutable: false
139       type: string
140       description: Name of private network to be created
141     end_src_ports:
142       hidden: false
143       immutable: false
144       type: float
145       description: End of src port
146       default: -1
147     end_dst_ports:
148       hidden: false
149       immutable: false
150       type: float
151       description: End of dst port
152       default: -1
153   node_templates:
154     service_instance:
155       type: org.openecomp.resource.abstract.nodes.heat.service_template
156       directives:
157       - substitutable
158       properties:
159         availability_zone:
160           get_input: availability_zone
161         static_routes_list:
162         - token:
163           - false;false;false;false
164           - ;
165           - 0
166         - token:
167           - false;false;false;false
168           - ;
169           - 1
170         - token:
171           - false;false;false;false
172           - ;
173           - 2
174         - token:
175           - false;false;false;false
176           - ;
177           - 3
178         availability_zone_enable:
179           get_input: st_availability_zone_enable_flag
180         service_template_name:
181           get_input: st_name
182         ordered_interfaces: true
183         flavor:
184           get_input: st_flavor_name
185         image_name:
186           get_input: st_image
187         service_template_filter:
188           substitute_service_template: lcp1_mss.oam-fw_si_service_instanceServiceTemplate.yaml
189           count: 5
190           scaling_enabled:
191             get_input: st_scaling
192           mandatory: true
193         service_type:
194           get_input: st_type
195         service_interface_type_list:
196         - token:
197           - get_input: st_service_interface_type_list
198           - ','
199           - 0
200         - token:
201           - get_input: st_service_interface_type_list
202           - ','
203           - 1
204         - token:
205           - get_input: st_service_interface_type_list
206           - ','
207           - 2
208         - token:
209           - get_input: st_service_interface_type_list
210           - ','
211           - 3
212         service_instance_name:
213           get_input: service_instance_name
214         interface_list:
215         - virtual_network:
216             get_input: oam_mgmt_net_id
217         - virtual_network:
218             get_input: oam_protected_net_id
219         - static_routes:
220           - prefix:
221               get_input: static_prefix_3_1
222           virtual_network:
223             get_input: oam_direct_net_id
224         - virtual_network:
225             get_input: oam_hsl_net_id
226         service_mode:
227           get_input: st_mode
228         shared_ip_list:
229         - true
230         - true
231         - false
232         - false
233     service_policy:
234       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules
235       properties:
236         entries:
237           policy_rule:
238           - src_ports:
239             - start_port:
240                 get_input: start_src_ports
241               end_port:
242                 get_input: end_src_ports
243             protocol: any
244             action_list:
245               apply_service:
246               - service_instance
247             dst_addresses:
248             - virtual_network:
249                 get_input: oam_direct_net_id
250             dst_ports:
251             - start_port:
252                 get_input: start_dst_ports
253               end_port:
254                 get_input: end_dst_ports
255             src_addresses:
256             - virtual_network:
257                 get_input: protected_net
258             direction:
259               get_input: service_policy_direction
260         name:
261           get_input: service_policy_name
262       requirements:
263       - dependency:
264           capability: tosca.capabilities.Node
265           node: service_instance
266           relationship: tosca.relationships.DependsOn
267   groups:
268     lcp1_mss.oam-fw_si_group:
269       type: org.openecomp.groups.heat.HeatStack
270       properties:
271         heat_file: ../Artifacts/lcp1_mss.oam-fw_si.yaml
272         description: |
273           Version 2.0 10-14-2015 (Authors: Art Mishurov,am254u & Johhny Chen, jc3066) - HOT-OAM-FW-SI template that creates two OAM networks (direct and protected) with a scaled out firewall service between the two.
274       members:
275       - service_instance
276       - service_policy