[train-only] Add is_ipv6 condition and CloudDomain in network.j2

Change I98a3d582add0d6881cd39433ddb25515f0e0dc31 fixed
a "ManageNetworks" use-case, but relies on is_ipv6
condition and CloudDomain parameter, which was missed
in the patch.

[1] 497d3f6b93

Change-Id: I2fd703af3a4ce6c41573cffe2d6b97aaaa54698b
This commit is contained in:
Martin Schuppert 2022-04-25 13:34:37 +02:00
parent d79c11842a
commit db9e2c23b8
1 changed files with 10 additions and 0 deletions

View File

@ -135,9 +135,19 @@ parameters:
needed. Defaults to true. For multi-stack use cases where the network
related resources have already been managed by a separate stack, this
parameter can be set to false.
CloudDomain:
default: 'localdomain'
type: string
description: >
The DNS domain used for the hosts. This must match the
overcloud_domain_name configured on the undercloud.
conditions:
manage_networks: {get_param: ManageNetworks}
is_ipv6:
yaql:
expression: '":" in $.data'
data: {get_param: {{network.name}}NetCidr}
resources:
{{network.name}}Network: