aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityGroupToNovaAddOn/inputfiles/addOn2.yml
blob: 9918c0bfdaea7ccc0aac24384d21517816a78c6e (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
heat_template_version: 2013-05-23

description: ASC Template

parameters:
  fe_smp_affinity_param:
    type: string
    description: be affinity param
  availability_zone_0:
    type: string
  vnf_id:
    type: string
    description: Unique ID for this VNF instance
    default: This_is_ths_SCP_id
  port_name:
    type: string
    description: port name
    default: port_name
  flavor_smp_name:
    type: string
    description: SCP SMP Flavor
    default: a1.Small
  image_smp_name:
    type: string
    description: SCP SMP image
    default: asc_base_image_smp
  smp_name_2:
    type: string
    default: vSMP2
    description: name of VM
  lab_name:
    type: string
    description: Lab name

resources:
  server_smp2:
      type: OS::Nova::Server
      properties:
        name: { get_param: smp_name_2 }
        image: { get_param: image_smp_name }
  #      key_name: { get_param: key_name }
        availability_zone: { get_param: availability_zone_0 }
        flavor: { get_param: flavor_smp_name }
        scheduler_hints: { group: { get_param: fe_smp_affinity_param }  }
        networks:
        - port: { get_resource: port2 }
        metadata:
          vnf_id: { get_param: vnf_id }
          jx_lab_name: {get_param: lab_name}
          jx_vm_role:  smp2
        user_data_format: RAW

  port2:
    type: OS::Neutron::Port
    properties:
      network: {get_param: port_name}
      replacement_policy: AUTO