aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/dependencyConnectivity/in/hot-mog-0108-bs1271.yml
blob: 157ec3f5df09b2aead51b9de251d88c7011b28c3 (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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .gd { color: #f92672 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gi { color: #a6e22e } /* Generic.Inserted */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #75715e } /* Generic.Subheading */
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
.highlight .kt { color: #66d9ef } /* Keyword.Type */
.highlight .ld { color: #e6db74 } /* Literal.Date */
.highlight .m { color: #ae81ff } /* Literal.Number */
.highlight .s { color: #e6db74 } /* Literal.String */
.highlight .na { color: #a6e22e } /* Name.Attribute */
.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
.highlight .nc { color: #a6e22e } /* Name.Class */
.highlight .no { color: #66d9ef } /* Name.Constant */
.highlight .nd { color: #a6e22e } /* Name.Decorator */
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
.highlight .ne { color: #a6e22e } /* Name.Exception */
.highlight .nf { color: #a6e22e } /* Name.Function */
.highlight .nl { color: #f8f8f2 } /* Name.Label */
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
.highlight .nx { color: #a6e22e } /* Name.Other */
.highlight .py { color: #f8f8f2 } /* Name.Property */
.highlight .nt { color: #f92672 } /* Name.Tag */
.highlight .nv { color: #f8f8f2 } /* Name.Variable */
.highlight .ow { color: #f92672 } /* Operator.Word */
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
.highlight .mb { color: #ae81ff } /* Literal.Number.Bin */
.highlight .mf { color: #ae81ff } /* Literal.Number.Float */
.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
.highlight .sa { color: #e6db74 } /* Literal.String.Affix */
.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
.highlight .sc { color: #e6db74 } /* Literal.String.Char */
.highlight .dl { color: #e6db74 } /* Literal.String.Delimiter */
.highlight .sd { color: #e6db74 } /* Literal.String.Doc */
.highlight .s2 { color: #e6db74 } /* Literal.String.Double */
.highlight .se { color: #ae81ff } /* Literal.String.Escape */
.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
.highlight .si { color: #e6db74 } /* Literal.String.Interpol */
.highlight .sx { color: #e6db74 } /* Literal.String.Other */
.highlight .sr { color: #e6db74 } /* Literal.String.Regex */
.highlight .s1 { color: #e6db74 } /* Literal.String.Single */
.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #a6e22e } /* Name.Function.Magic */
.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
.highlight .vm { color: #f8f8f2 } /* Name.Variable.Magic */
.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */
}
@media (prefers-color-scheme: light) {
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #333333 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #666666 } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #008800 } /* Keyword.Pseudo */
.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */
.highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */
.highlight .
heat_template_version: 2013-05-23

description: heat template that creates MOG stack

parameters:
  pd_server_names:
    type: comma_delimited_list
    label: PD server names
    description: name of the PD instance
  pd_image_name:
    type: string
    label: image name
    description: PD image name
  pd_flavor_name:
    type: string
    label: PD flavor name
    description: flavor name of PD instance
  availabilityzone_name:
    type: string
    label: availabilityzone name
    description: availabilityzone name
  a_single_1a_names:
    type: string
  oam_net_name:
    type: string
  ppds_net_name:
    type: string
  b_single_1b_names:
    type: string
  1c1_scalling_instance_names:
    type: string
  myIPs:
    type: string
  1c2_catalog_instance_names:
    type: string
  pcm_server_names:
    type: string
  pcm_image_name:
    type: string
  pcm_flavor_name:
    type: string
  net_name:
    type: string
  security_group_name:
    type: string
resources:
  1a_single_1A:
    type: OS::Nova::Server
    depends_on:
    - 4p_nested
    - nestedWithNoNovaHadDependencyToIt
    properties:
      name: {get_param: [a_single_1a_names, 0]}
      image: {get_param: pd_image_name}
      flavor: {get_param: pd_flavor_name}
      availability_zone: {get_param: availabilityzone_name}
      networks:
        - port: {get_resource: 1a_t1_port_0}
        - port: {get_resource: 1a_t2_port_0}
      user_data_format:  RAW
      scheduler_hints: { group: { get_resource: BE_Affinity }  }

  1a_t1_port_0:
    type: OS::Neutron::Port
    properties:
      network: {get_resource: a_single_1a_network}
  1a_t2_port_0:
    type: OS::Neutron::Port
    properties:
      network: {get_param: ppds_net_name}

  a_single_1a_network:
    type: OS::Neutron::Net
    properties:
      name:
        get_param: net_name

  4p_nested:
    type: nested-pcm_v0.1.yaml
    depends_on:
    - 1a_single_1A
    - 1b_t1_port_0
    - nestedWithNoNovaHadDependencyToIt
    properties:
      pcm_server_name: { get_param: [pcm_server_names, 0] }
      pcm_image_name: { get_param: pcm_image_name }
      pcm_flavor_name: { get_param: pcm_flavor_name }
      cps_net_name: { get_resource: nested_network}
      security_group_name: { get_resource: jsa_security_group}
      server_group: { get_resource: BE_Affinity }

  nested_network:
    type: OS::Neutron::Net
    properties:
      name:
        get_param: net_name

  1b01_single_1B:
    type: OS::Nova::Server
    depends_on:
    - 1a_single_1A
    - 4p_nested
    - nestedWithNoNovaHadDependencyToIt
    properties:
      name: {get_param: [b_single_1b_names, 0]}
      image: {get_param: pd_image_name}
      flavor: {get_param: pd_flavor_name}
      availability_zone: {get_param: availabilityzone_name}
      networks:
        - port: {get_resource: 1b_t1_port_0}
        - port: {get_resource: 1b_t2_port_0}
      user_data_format:  RAW
      scheduler_hints: { group: { get_resource: BE_Affinity }  }

  1b_t1_port_0:
    type: OS::Neutron::Port
    properties:
      network: {get_attr: [1b01_single_1B, accessIPv6]}

  1b_t2_port_0:
    type: OS::Neutron::Port
    properties:
      network: {get_resource: b_single_1b_network}

  b_single_1b_network:
    type: OS::Neutron::Net
    properties:
      name:
        get_param: net_name

  1b02_single_1B:
    type: OS::Nova::Server
    properties:
      name: {get_param: [b_single_1b_names, 1]}
      image: {get_param: pd_image_name}
      flavor: {get_param: pd_flavor_name}
      availability_zone: {get_param: availabilityzone_name}
      networks:
        - port: {get_resource: 1b_t1_port_1}
        - port: {get_resource: 1b_t2_port_1}
      user_data_format:  RAW
      scheduler_hints: { group: { get_resource: BE_Affinity }  }

  1b_t1_port_1:
    type: OS::Neutron::Port
    properties:
      network: {get_param: oam_net_name}

  1b_t2_port_1:
    type: OS::Neutron::Port
    properties:
      network: {get_resource: b_single_1b_network}

  1c101_scalling_instance_1C1:
    type: OS::Nova::Server
    depends_on:
      - nestedWithNoNovaHadDependencyToIt
    properties:
      name: {get_param: [1c1_scalling_instance_names, 1]}
      image: {get_param: pd_image_name}
      flavor: {get_param: pd_flavor_name}
      availability_zone: {get_param: availabilityzone_name}
      networks:
        - port: {get_resource: 1c1_t1_port_0}
        - port: {get_resource: 1c1_t2_port_0}
      user_data_format:  RAW1
      scheduler_hints: { group: { get_resource: BE_Affinity }  }

  1c1_t1_port_0:
    type: OS::Neutron::Port
    properties:
      network: {get_resource: 1c1_scalling_instance_network}
      fixed_ips: [{"ip_address": {get_param: [myIPs, 1]}}]
      name: 1c1_t1_port_0
  1c1_t2_port_0:
    type: OS::Neutron::Port
    properties:
      network: {get_param: ppds_net_name}
      fixed_ips: [{"ip_address": {get_param: [myIPs, 1]}}]
      name: 1c1_t2_port_0

  1c1_scalling_instance_network:
    type: OS::Neutron::Net
    properties:
      name:
        get_param: net_name

  1c102_scalling_instance_1C1:
    type: OS::Nova::Server
    depends_on:
      - nestedWithNoNovaHadDependencyToIt
    properties:
      name: {get_param: [1c1_scalling_instance_names, 2]}
      image: {get_param: pd_image_name}
      flavor: {get_param: pd_flavor_name}
      availability_zone: {get_param: availabilityzone_name}
      networks:
        - port: {get_resource: 1c1_t1_port_1}
        - port: {get_resource: 1c1_t2_port_1}
      user_data_format:  RAW2
      scheduler_hints: { group: { get_resource: BE_Affinity }  }

  1c1_t1_port_1:
    type: OS::Neutron::Port
    properties:
      network: {get_resource: 1c1_scalling_instance_network}
      fixed_ips: [{"ip_address": {get_param: [myIPs, 1]}}]
      name: 1c1_t1_port_1

  1c1_t2_port_1:
    type: OS::Neutron::Port
    properties:
      network: {get_param: ppds_net_name}
      fixed_ips: [{"ip_address": {get_param: [myIPs, 1]}}]
      name: 1c1_t2_port_1

  1c201_catalog_instance_1C2:
    type: OS::Nova::Server
    properties:
      name: {get_param: [1c2_catalog_instance_names, 1]}
      image: {get_param: pd_image_name}
      flavor: {get_param: pd_flavor_name}
      availability_zone: {get_param: availabilityzone_name}
      networks:
        - port: {get_resource: 1c2_t1_port_0}
        - port: {get_resource: 1c2_t2_port_0}
      user_data_format:  RAW1
      scheduler_hints: { group: { get_resource: BE_Affinity }  }

  1c2_t1_port_0:
    type: OS::Neutron::Port
    depends_on:
      - nestedWithNoNovaHadDependencyToIt
    properties:
      network: {get_param: oam_net_name}
  1c2_t2_port_0:
    type: OS::Neutron::Port
    properties:
      network: {get_resource: 1c2_catalog_instance_network}

  1c2_catalog_instance_network:
    type: OS::Neutron::Net
    properties:
      name:
        get_param: net_name

  1c202_scalling_instance_1C2:
    type: OS::Nova::Server
    properties:
      name: {get_param: [1c2_catalog_instance_names, 2]}
      image: {get_param: pd_image_name}
      flavor: {get_param: pd_flavor_name}
      availability_zone: {get_param: availabilityzone_name}
      networks:
        - port: {get_resource: 1c2_t1_port_1}
        - port: {get_resource: 1c2_t2_port_1}
      user_data_format:  {get_attr: [1c201_catalog_instance_1C2, instance_name]}
      scheduler_hints: { group: { get_resource: BE_Affinity }  }

  1c2_t1_port_1:
    type: OS::Neutron::Port
    depends_on:
      - nestedWithNoNovaHadDependencyToIt
    properties:
      network: {get_param: oam_net_name}
  1c2_t2_port_1:
    type: OS::Neutron::Port
    properties:
      network: {get_resource: 1c2_catalog_instance_network}


  nestedNoUnified:
    type: nested-no_vfc_v0.1.yaml
    depends_on:
      - 1c2_t2_port_1
      - nestedWithNoNovaHadDependencyToIt
    properties:
      pcm_server_name: { get_param: [pcm_server_names, 0] }
      pcm_image_name: { get_param: pcm_image_name }
      pcm_flavor_name: { get_param: pcm_flavor_name }
      cps_net_name: { get_resource: nested_network}
      security_group_name: { get_resource: jsa_security_group}
      server_group: { get_resource: BE_Affinity }

  nestedWithNoNova:
    type: nested-no-nova.yaml
    depends_on:
      - 1a_single_1A
      - 4p_nested
      - 1b_t1_port_0
      - 1b_t1_port_1
      - 1c101_scalling_instance_1C1
      - 1c102_scalling_instance_1C1
      - 1c201_catalog_instance_1C2
      - 1c202_scalling_instance_1C2
      - nestedNoUnified
      - nestedWithNoNovaHadDependencyToIt
    properties:
      security_group_name: group1
      net_name: myNetwork

  nestedWithNoNovaHadDependencyToIt:
    type: nested-no-nova.yaml
    properties:
      security_group_name: group1
      net_name: myNetwork

  jsa_security_group:
    type: OS::Neutron::SecurityGroup
    properties:
      description: ems security group
      name: {get_param: security_group_name}
      rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
              {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
              {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0},
              {"direction": egress, "ethertype": IPv6, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": "::/0"},
              {"direction": egress, "ethertype": IPv6, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": "::/0"},
              {"direction": egress, "ethertype": IPv6, "protocol": icmp, "remote_ip_prefix": "::/0"},
              {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
              {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
              {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0},
              {"direction": ingress, "ethertype": IPv6, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": "::/0"},
              {"direction": ingress, "ethertype": IPv6, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": "::/0"},
              {"direction": ingress, "ethertype": IPv6, "protocol": icmp, "remote_ip_prefix": "::/0"}
              ]

  dependsOn_network:
    type: OS::Neutron::Net
    depends_on:
      - nestedNoUnified
      - 4p_nested
      - 1c2_t1_port_1
      - 1c2_t1_port_0
      - 1c201_catalog_instance_1C2
      - 1c202_scalling_instance_1C2
      - 1c101_scalling_instance_1C1
      - 1c102_scalling_instance_1C1
      - 1c1_t2_port_0
      - 1c1_t2_port_1
      - 1b01_single_1B
      - 1b02_single_1B
      - 1b_t1_port_0
      - 1b_t1_port_1
      - 1a_single_1A
      - 1a_t1_port_0
      - nestedWithNoNovaHadDependencyToIt
    properties:
      name:
        get_param: net_name

  nodeGetAttIn_network:
    type: OS::Neutron::Net
    properties:
      name: { get_attr: [nestedNoUnified, portId, {get_attr: [4p_nested, server_pcm_id]}]}
      dhcp_agent_ids: { get_attr: [1c2_t1_port_1, tenant_id, {get_attr: [1c2_t1_port_0, tenant_id, {get_attr: [1c201_catalog_instance_1C2, instance_name, {get_attr: [1c202_scalling_instance_1C2,instance_name]}]}]}]}
      tenant_id: { get_attr:[1c101_scalling_instance_1C1, instance_name, {get_attr:[1c102_scalling_instance_1C1, instance_name, {get_attr:[1c1_t2_port_0, tenant_id, {get_attr:[1c1_t2_port_1, tenant_id]}]}]}]}
      value_specs: {get_attr:[1b01_single_1B, instance_name, get_attr:[1b02_single_1B,instance_name, {get_attr:[1b_t1_port_0, tenant_id, {get_attr:[1b_t1_port_1, tenant_id]}]}]] }
      qos_policy: {get_attr:[1a_single_1A, instance_name]}
      admin_state_up: {get_attr:[1a_t1_port_0, tenant_id]}

  BE_Affinity:
    type: OS::Nova::ServerGroup
    properties:
      policies: ["affinity"]
      name: def

outputs:
  out1:
    value: { get_attr: [nestedNoUnified, portId, {get_attr: [4p_nested, server_pcm_id]}]}
  out2:
    value: { get_attr: [1c2_t1_port_1, tenant_id, {get_attr: [1c2_t1_port_0, tenant_id, {get_attr: [1c201_catalog_instance_1C2, instance_name, {get_attr: [1c202_scalling_instance_1C2,instance_name]}]}]}]}
  out3:
    value: { get_attr:[1c101_scalling_instance_1C1, instance_name, {get_attr:[1c102_scalling_instance_1C1, instance_name, {get_attr:[1c1_t2_port_0, tenant_id, {get_attr:[1c1_t2_port_1, tenant_id]}]}]}]}
  out4:
    value: {get_attr:[1b01_single_1B, instance_name, get_attr:[1b02_single_1B,instance_name, {get_attr:[1b_t1_port_0, tenant_id, {get_attr:[1b_t1_port_1, tenant_id]}]}]] }
  out5:
    value: {get_attr:[1a_single_1A, instance_name]}
  out6:
    value: {get_attr:[1a_t1_port_0, tenant_id]}
  out7:
    value: {get_attr:[nestedWithNoNovaHadDependencyToIt, output1]}