Use show base attribute for network/subnet attrs

We changed in https://review.opendev.org/#/c/752922/ to expose
network and subnet attributes for GroupVars. However,
heat does not expose all atrributes for network/subnet ie. tags
for subnets. Use the 'show' base attributes to get all attributes
from neutron.

Change-Id: Idc14ac2ce77904ed182385d248047e7afe2ad0ab
This commit is contained in:
Rabi Mishra 2020-10-01 11:09:57 +05:30
parent f4867675c4
commit 13eb678417
1 changed files with 3 additions and 3 deletions

View File

@ -287,11 +287,11 @@ outputs:
{%- endfor %}
network_attrs:
description: {{network.name}} network's attributes
value: {get_attr: [{{network.name}}Network]}
value: {get_attr: [{{network.name}}Network, show]}
subnet_attrs:
description: Map of attributes for subnets in the {{network.name}} network
value:
{{network.name_lower}}_subnet: {get_attr: [{{network.name}}Subnet]}
{{network.name_lower}}_subnet: {get_attr: [{{network.name}}Subnet, show]}
{%- for subnet in network.subnets|default({}) if network.subnets[subnet].enabled|default(true) %}
{{subnet}}: {get_attr: [{{network.name}}Subnet_{{subnet}}]}
{{subnet}}: {get_attr: [{{network.name}}Subnet_{{subnet}}, show]}
{%- endfor %}