aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/ep-jsa-si/ep-jsa-si.yaml
blob: d9f9e5b944cbcdab0dea7e647268f12265bbb596 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
heat_template_version: 2013-05-23

description: >
  Version 2.0 02-09-2016 (Authors: John Doe, user PROD)

parameters:
  mgmt_net:
    type: string
    description: network name of OAM network
  jsa_net:
    type: string
    description: network name of jsa log network
  st_name:
    type: string
    description: service template name or ID
  st_type:
    type: string
    description: service type
  st_image:
    type: string
    description: Name of the image
  st_flavor:
    type: string
    description: Flavor
  st_service_interface_type_list:
    type: string
    description: List of interface types
  st_shared_ip_list:
    type: string
    description: List of shared ip enabled-disabled
  st_static_routes_list:
    type: string
    description: List of static routes enabled-disabled
  st_scaling:
    type: string
    description: Indicates whether service scaling is enabled
  st_mode:
    type: string
    description: service mode
  max_num_fw_instances:
    type: number
    description: maximum number of firewall instances for scaling
  service_instance_name:
    type: string
    description: service instance name

resources:
  service_template:
    type: OS::Contrail::ServiceTemplate
    properties:
      name: { get_param: st_name }
      service_mode: { get_param: st_mode }
      service_type: { get_param: st_type }
      image_name: { get_param: st_image }
      flavor: { get_param: st_flavor }
      service_interface_type_list: { "Fn::Split" : [ ",", Ref: st_service_interface_type_list ] }
      shared_ip_list: { "Fn::Split" : [ ",", Ref: st_shared_ip_list ] }
      static_routes_list: { "Fn::Split" : [ ",", Ref: st_static_routes_list ]}
      service_scaling: { get_param: st_scaling }

  service_instance:
    type: OS::Contrail::ServiceInstance
    properties:
      name: { get_param: service_instance_name }
      service_template: { get_resource:  service_template }
      scale_out:
          max_instances: { get_param: max_num_fw_instances }
      interface_list: [
          {
              virtual_network: {get_param: mgmt_net}
          },
          {
              virtual_network: {get_param: jsa_net}
          },
      ]