Get proprety of an external resource
Hi everybody, First, i use newton version.
I find a difficulty to extract a property ( CIDR ) of an external resource ( Subnet ) using the 'external_id' block. Here is my code :
_subnet_cidr:
type: OS::Neutron::Subnet
external_id:
get_param: p_subnet
When i launch my template, i get an error :
Failed to validate: resources[0]: Failed to validate: Failed to validate: resources[0]: Property network not assigned
If i try to add properties, it acts like creating a new resource, what i want is just import it and use it in my output section to get the attributes.
If nothing works i will use my env file to put cidr as input.
did u tried cidr: get_param: cidr
cidr isn't in my parameters section, i want to import a ressource and use it's properties in another resource, like:
I can import Neutron::Net but doesnt work with Neutron::Subnet, it requiers a network as propertie.
Do you have
heat_template_version
asnewton
or2016-10-14
in your template? That is required to useexternal_id
._net: type: OS::Neutron::Net external_id: get_param: - p_net - get_param: p_index _subnet: type: OS::Neutron::Subnet external_id: get_attr: - _net - subnets - 0
i use newton version but still when i switched to 2016-10-14 i got the same error : Property network not assigned. looks like it can import Neutron::Net but not Neutron::Subnet ( Network is a required property to Neutron::Subnet )