summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/portSecurityGroupNetPattern1B/in/nested2.yml
blob: 8fbe2ac6aa6af6d9c95bff366dba592207f0a9c5 (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
heat_template_version: 2013-05-23

description: nested2

parameters:
  p1:
    type: string
    description: UID of OAM network
  p2:
    type: string
    description: UID of OAM network
  net1:
    type: string
    description: Neutron network
  net2:
    type: string
    description: Contrail V2 network
  security_group_name:
    type: comma_delimited_list
    description: CMAUI1, CMAUI2 server names
  sm_server_names:
    type: comma_delimited_list
    description: SM server names
  sm_server_image:
    type: string
    description: SM Image server
  oam_server_names:
    type: comma_delimited_list
    description: OAM server names
  oam_server_image:
    type: string
    description: OAM Image server
  availability_zone_0:
    type: string
    label: availabilityzone name
    description: availabilityzone name
  sm_server_flavor:
    type: string
    description: Flavor for SM server
  oam_server_flavor:
    type: string
    description: Flavor for OAM server
  sm_server_ips:
      type: string
  oam_server_ips:
      type: string
  net:
    type: string

resources:
  sm_server_port:
    type: OS::Neutron::Port
    properties:
      network: { get_param: net1 }
      fixed_ips: [{"ip_address": {get_param: [sm_server_ips, 0]}}]
      security_groups: [{get_param: p1},{get_param: p2}]
      replacement_policy: AUTO

  oam_server_port:
    type: OS::Neutron::Port
    properties:
      network: { get_param: net2 }
      fixed_ips: [{"ip_address": {get_param: [oam_server_ips, 0]}}]
      security_groups: [{get_param: p1}]
      replacement_policy: AUTO

  server_sm:
    type: OS::Nova::Server
    properties:
      name: { get_param: [sm_server_names, 0]}
      image: { get_param: sm_server_image }
      availability_zone: { get_param: availability_zone_0 }
      flavor: { get_param: sm_server_flavor }
      networks:
      - port: { get_resource: sm_server_port }

  server_oam:
    type: OS::Nova::Server
    properties:
      name: { get_param: [oam_server_names, 1]}
      image: { get_param: oam_server_image }
      availability_zone: { get_param: availability_zone_0 }
      flavor: { get_param: oam_server_flavor }
      networks:
      - port: { get_resource: oam_server_port }


  test_resourceGroup:
    type: OS::Heat::ResourceGroup
    properties:
      count: 9
      resource_def:
        type: nested3.yml
        properties:
          p1: { get_param: net}
          indx: "%index%"