push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / ep-jsa-si / ep-jsa-si.yaml
1 heat_template_version: 2013-05-23
2
3 description: >
4   Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
5
6 parameters:
7   mgmt_net:
8     type: string
9     description: network name of OAM network
10   jsa_net:
11     type: string
12     description: network name of jsa log network
13   st_name:
14     type: string
15     description: service template name or ID
16   st_type:
17     type: string
18     description: service type
19   st_image:
20     type: string
21     description: Name of the image
22   st_flavor:
23     type: string
24     description: Flavor
25   st_service_interface_type_list:
26     type: string
27     description: List of interface types
28   st_shared_ip_list:
29     type: string
30     description: List of shared ip enabled-disabled
31   st_static_routes_list:
32     type: string
33     description: List of static routes enabled-disabled
34   st_scaling:
35     type: string
36     description: Indicates whether service scaling is enabled
37   st_mode:
38     type: string
39     description: service mode
40   max_num_fw_instances:
41     type: number
42     description: maximum number of firewall instances for scaling
43   service_instance_name:
44     type: string
45     description: service instance name
46
47 resources:
48   service_template:
49     type: OS::Contrail::ServiceTemplate
50     properties:
51       name: { get_param: st_name }
52       service_mode: { get_param: st_mode }
53       service_type: { get_param: st_type }
54       image_name: { get_param: st_image }
55       flavor: { get_param: st_flavor }
56       service_interface_type_list: { "Fn::Split" : [ ",", Ref: st_service_interface_type_list ] }
57       shared_ip_list: { "Fn::Split" : [ ",", Ref: st_shared_ip_list ] }
58       static_routes_list: { "Fn::Split" : [ ",", Ref: st_static_routes_list ]}
59       service_scaling: { get_param: st_scaling }
60
61   service_instance:
62     type: OS::Contrail::ServiceInstance
63     properties:
64       name: { get_param: service_instance_name }
65       service_template: { get_resource:  service_template }
66       scale_out:
67           max_instances: { get_param: max_num_fw_instances }
68       interface_list: [
69           {
70               virtual_network: {get_param: mgmt_net}
71           },
72           {
73               virtual_network: {get_param: jsa_net}
74           },
75       ]
76