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

description: nested1

parameters:
  p1:
    type: string
    description: UID of OAM network
  p2:
    type: string
    description: UID of OAM network
  security_group_name:
    type: comma_delimited_list
    description: CMAUI1, CMAUI2 server names
  network_name:
    type: string
    description: CMAUI1, CMAUI2 server names
  cmaui_names:
    type: comma_delimited_list
    description: CMAUI1, CMAUI2 server names
  cmaui_image:
    type: string
    description: Image for CMAUI server
  availability_zone_0:
    type: string
    label: availabilityzone name
    description: availabilityzone name
  cmaui_flavor:
    type: string
    description: Flavor for CMAUI server
  cmaui_oam_ips:
      type: string
resources:

  cmaui_volume_attachment1:
     type: OS::Cinder::VolumeAttachment
     properties:
       volume_id: {get_param: p1}
       instance_uuid: {get_resource: server_cmaui1}

  cmaui_volume_attachment2:
     type: OS::Cinder::VolumeAttachment
     properties:
       volume_id: {get_param: p2}
       instance_uuid: {get_resource: server_cmaui1}

  cmaui_volume_attachment3:
     type: OS::Cinder::VolumeAttachment
     properties:
       volume_id: {get_param: p1}
       instance_uuid: {get_resource: server_cmaui2}

  cmaui_port_1:
    type: OS::Neutron::Port
    properties:
      network: { get_param: p1 }
      fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
      security_groups: [{get_param: security_group_name}]
      replacement_policy: AUTO

  cmaui_port_2:
    type: OS::Neutron::Port
    properties:
      network: { get_param: network_name }
      fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 1]}}]
      security_groups: [{get_param: security_group_name}]
      replacement_policy: AUTO

  server_cmaui1:
    type: OS::Nova::Server
    properties:
      name: { get_param: [cmaui_names, 0]}
      image: { get_param: cmaui_image }
      availability_zone: { get_param: availability_zone_0 }
      flavor: { get_param: cmaui_flavor }
      networks:
      - port: { get_resource: cmaui_port_1 }

  server_cmaui2:
    type: OS::Nova::Server
    properties:
      name: { get_param: [cmaui_names, 1]}
      image: { get_param: cmaui_image }
      availability_zone: { get_param: availability_zone_0 }
      flavor: { get_param: cmaui_flavor }
      networks:
      - port: { get_resource: cmaui_port_2 }

  test_nested2Level:
    type: nested2.yml
    properties:
      p1: { get_param: p1}
      p2: { get_param: p2}