---
parameters:
- bialy_net_fqdn:
+ oam_net_fqdn:
+ type: string
+ huey:
+ type: string
+ dewey:
type: string
resources:
- vm_typeX_0_bialy_port_2:
+ fw_0_oam_vmi_0:
+ type: OS::ContrailV2::VirtualMachineInterface
+ properties:
+ virtual_network_refs:
+ - get_param: oam_net_fqdn
+
+ fw_0_int_internal_vmi_0:
type: OS::ContrailV2::VirtualMachineInterface
properties:
virtual_network_refs:
- - get_param: huey
- - get_param: dewey
- - get_param: bialy_net_fqdn
+ - get_resource: { int_internal_network }
+ int_internal_network:
+ type: OS::Neutron::Net
type: string
description: nlfdsa
+ subnet_uid:
+ type: string
+ description: nlfdsa
+
resources:
int_mummy_network:
oam2_net_fqdn: { get_param: oam2net_fqdn }
instance_ip_address: { get_param: instanceip_address }
mycontrailip: { get_param: my_contrailip }
+ subnet_uuid: { get_param: subnet_uid }
type: string
description: njsaf
+ subnet_uuid:
+ type: string
+ description: njsaf
+
resources:
fw_0_oam_protected_vmi_0_IP_0:
type: OS::ContrailV2::InstanceIp
properties:
instance_ip_address: { get_param: instance_ip_address }
+ subnet_uuid: { get_param: subnet_uuid }
fw_0_oam_vmi_0:
type: OS::ContrailV2::VirtualMachineInterface
type: string
description: nlfdsa
+ subnet_uid:
+ type: string
+ description: nlfdsa
+
+
resources:
int_mummy_network:
oam2_net_fqdn: { get_param: oam2_net_fqdn }
instance_ip_address: { get_param: instance_ip_address }
mycontrailip: { get_param: mycontrailip }
+ subnet_uid: { get_param: subnet_uid }
type: string
description: njsaf
+ subnet_uid:
+ type: string
+ description: njsaf
+
resources:
fw_0_oam_protected_vmi_0_IP_0:
type: OS::ContrailV2::InstanceIp
properties:
instance_ip_address: { get_param: instance_ip_address }
-
+ subnet_uuid: { get_param: subnet_uid }
fw_0_oam_vmi_0:
type: OS::ContrailV2::VirtualMachineInterface
properties:
expect = "%s_net_fqdn" % network_role
for vn_ref in virtual_network_refs:
param = heat.nested_get(vn_ref, "get_param")
+
+ # skip if not connecting via get_param
+ if not param:
+ return None
+
if param == expect:
param_type = heat.nested_get(heat.parameters, param, "type")
if param_type != "string":
check_nested_parameter_doesnt_change(
heat_template, "OS::ContrailV2::InstanceIp", "instance_ip_address"
)
+
+
+@validates("R-708564")
+def test_iip_subnet_uuid_parameter_name_doesnt_change_in_nested_template(heat_template):
+ check_nested_parameter_doesnt_change(
+ heat_template, "OS::ContrailV2::InstanceIp", "subnet_uuid"
+ )