aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/dependencyConnectivity/in/nested-no_vfc_v0.1.yaml
blob: 2548875c7567ec669ee634a54bf547d944a8b0dc (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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
heat_template_version: 2013-05-23

description: heat template that creates PCRF Cluman stack

parameters:
  pcm_server_name:
    type: string
    label: PCRF CM server name
    description: PCRF CM server name
  pcm_image_name:
    type: string
    label: image name
    description: PCRF CM image name
  pcm_flavor_name:
    type: string
    label: PCRF CM flavor name
    description: flavor name of PCRF CM instance
  availabilityzone_name:
    type: string
    label: availabilityzone name
    description: availabilityzone name
  cps_net_name:
    type: string
    label: CPS network name
    description: CPS network name
  cps_net_ip:
    type: string
    label: CPS network ip
    description: CPS network ip
  cps_net_mask:
    type: string
    label: CPS network mask
    description: CPS network mask
  oam_net_name:
    type: string
    label: OAM network name
    description: OAM network name
  oam_net_ip:
    type: string
    label: OAM network ip
    description: OAM network ip
  oam_net_gw:
    type: string
    label: CPS network gateway
    description: CPS network gateway
  oam_net_mask:
    type: string
    label: CPS network mask
    description: CPS network mask
  pcm_vol:
    type: string
    label: CPS Cluman Cinder Volume
    description: CPS Cluman Cinder Volume
  security_group_name:
    type: string
    label: security group name
    description: the name of security group
  pcma_server_name:
    type: string
  pcma_image_name:
    type: string
  pcma_flavor_name:
    type: string
  server_group:
    type: string

resources:
  server_pcma1:
    type: OS::Nova::Server
    properties:
      config_drive: "True"
      name: { get_param: pcma_server_name }
      image: { get_param: pcma_image_name }
      flavor: { get_param: pcma_flavor_name }
      availability_zone: { get_param: availabilityzone_name }
      networks:
        - port: { get_resource: pcm_port_0}
        - port: { get_resource: pcm_port_1}
      block_device_mapping:
        - device_name: vdb
          volume_id: { get_param: pcm_vol}
      user_data_format: RAW

  server_pcma2:
    type: OS::Nova::Server
    properties:
      config_drive: "True"
      name: { get_param: pcma_server_name }
      image: { get_param: pcma_image_name }
      flavor: { get_param: pcma_flavor_name }
      availability_zone: { get_param: availabilityzone_name }
      networks:
        - port: { get_resource: pcm_port_2}
        - port: { get_resource: pcm_port_3}
      block_device_mapping:
        - device_name: vdb
          volume_id: { get_param: pcm_vol}
      user_data_format: RAW
      scheduler_hints: { group: { get_param: server_group }  }

  pcm_port_0:
    type: OS::Neutron::Port
    properties:
      network: { get_param: cps_net_name }
      fixed_ips:
        - ip_address: { get_param: cps_net_ip }
      security_groups: [{ get_param: security_group_name }]

  pcm_port_1:
    type: OS::Neutron::Port
    properties:
      network: { get_param: oam_net_name }
      fixed_ips:
        - ip_address: { get_param: oam_net_ip }
      security_groups: [{ get_param: security_group_name }]

  pcm_port_2:
    type: OS::Neutron::Port
    properties:
      network: { get_param: cps_net_name }
      fixed_ips:
        - ip_address: { get_param: cps_net_ip }
      security_groups: [{ get_param: security_group_name }]

  pcm_port_3:
    type: OS::Neutron::Port
    properties:
      network: { get_param: oam_net_name }
      fixed_ips:
        - ip_address: { get_param: oam_net_ip }
      security_groups: [{ get_param: security_group_name }]

outputs:
  portId:
    value: { get_resource: pcm_port_3 }