# Revision history [back]

### get_resource function seems to trigger replacement of resource B that depends on resource A, even though resource A is unchanged

This is part of my hot template. I define two resources: one network and one subnet. The subnet uses the get_resrouce function. My stack is deployed successfully. However, when I add - for example - a resource to my HOT, leaving the following part unchanged, and try to update the stack, the subnet is replaced, while the network remains unchanged. Can someone advise on how to overcome this issue? Thanks!

parameters:
backplane-vlan:
default: '2100'
description: Segmentation Id for backplane internal network
label: backplane-vlan
type: string
resources:
backplane:
properties:
name: backplane
value_specs:
provider:network_type: vlan
provider:physical_network: default
provider:segmentation_id:
get_param: backplane-vlan
type: OS::Neutron::Net
backplane_subnet:
properties:
cidr: 192.168.0.0/24
enable_dhcp: false
ip_version: '4'
name: backplane_subnet
network:
get_resource: backplane
type: OS::Neutron::Subnet


### get_resource function seems to trigger replacement of resource B that depends on resource A, even though resource A is unchanged

This is part of my hot template. I define two resources: one network and one subnet. The subnet uses the get_resrouce function. My stack is deployed successfully. However, when I add - for example - a resource to my HOT, leaving the following part unchanged, and try to update the stack, the subnet is replaced, while the network remains unchanged. Can someone advise on how to overcome this issue? Thanks!Thanks! edit: Forgot to mention the Openstack version: Mitaka

parameters:
backplane-vlan:
default: '2100'
description: Segmentation Id for backplane internal network
label: backplane-vlan
type: string
resources:
backplane:
properties:
name: backplane
value_specs:
provider:network_type: vlan
provider:physical_network: default
provider:segmentation_id:
get_param: backplane-vlan
type: OS::Neutron::Net
backplane_subnet:
properties:
cidr: 192.168.0.0/24
enable_dhcp: false
ip_version: '4'
name: backplane_subnet
network:
get_resource: backplane
type: OS::Neutron::Subnet


### get_resource function seems to trigger replacement of resource B that depends on resource A, even though resource A is unchanged

This is part of my hot template. I define two resources: one network and one subnet. The subnet uses the get_resrouce function. My stack is deployed successfully. However, when I add - for example - a resource to my HOT, leaving the following part unchanged, and try to update the stack, the subnet is replaced, while the network remains unchanged. Can someone advise on how to overcome this issue? Thanks! edit: Forgot to mention the Openstack version: Mitaka

parameters:
backplane-vlan:
default: '2100'
description: Segmentation Id for backplane internal network
label: backplane-vlan
type: string
resources:
backplane:
properties:
name: backplane
value_specs:
provider:network_type: vlan
provider:physical_network: default
provider:segmentation_id:
get_param: backplane-vlan
type: OS::Neutron::Net
backplane_subnet:
properties:
cidr: 192.168.0.0/24
enable_dhcp: false
ip_version: '4'
name: backplane_subnet
network:
get_resource: backplane
type: OS::Neutron::Subnet