Merge "Do not error out when a network is ipv6 only"
This commit is contained in:
commit
fc1c186310
@ -95,7 +95,7 @@ parameters:
|
||||
Cidr for the {{network.name_lower}} network's {{subnet}} subnet.
|
||||
type: string
|
||||
{{network.name}}AllocationPools_{{subnet}}:
|
||||
{%- if ":" in network.subnets[subnet]['ip_subnet'] or network.ipv6|default(false) or ipv6_override %}
|
||||
{%- if network.ipv6|default(false) or ipv6_override or ":" in network.subnets[subnet]['ip_subnet'] %}
|
||||
default: {{network.subnets[subnet]['ipv6_allocation_pools']|default(network.subnets[subnet]['allocation_pools']|default([]))}}
|
||||
{%- else %}
|
||||
default: {{network.subnets[subnet]['allocation_pools']|default([])}}
|
||||
@ -104,7 +104,7 @@ parameters:
|
||||
Ip allocation pool range for the {{network.name_lower}} network's {{subnet}} subnet.
|
||||
type: json
|
||||
{{network.name}}InterfaceDefaultRoute_{{subnet}}:
|
||||
{%- if ":" in network.subnets[subnet]['ip_subnet'] or network.ipv6|default(false) or ipv6_override %}
|
||||
{%- if network.ipv6|default(false) or ipv6_override or ":" in network.subnets[subnet]['ip_subnet'] %}
|
||||
default: "{{network.subnets[subnet]['gateway_ipv6']|default(network.subnets[subnet]['gateway_ip']|default([]))}}"
|
||||
{%- else %}
|
||||
default: "{{network.subnets[subnet]['gateway_ip']|default([])}}"
|
||||
@ -208,7 +208,7 @@ resources:
|
||||
# All networks have an implicit network segment when created, map this subnet to that segment.
|
||||
segment: {get_attr: [{{network.name}}Network, segments, 0, id]}
|
||||
ip_version: {if: [is_ipv6, 6, 4]}
|
||||
{%- if ":" in network.ip_subnet|default("") or network.ipv6|default(false) or ipv6_override %}
|
||||
{%- if network.ipv6|default(false) or ipv6_override or ":" in network.ip_subnet|default("") %}
|
||||
ipv6_address_mode: {get_param: IPv6AddressMode}
|
||||
ipv6_ra_mode: {get_param: IPv6RAMode}
|
||||
{%- else %}
|
||||
@ -256,7 +256,7 @@ resources:
|
||||
host_routes: {get_param: {{network.name}}Routes_{{subnet}}}
|
||||
segment: {get_resource: {{network.name}}Segment_{{subnet}}}
|
||||
ip_version: {if: [is_ipv6, 6, 4]}
|
||||
{%- if ":" in network.ip_subnet|default("") or network.ipv6|default(false) or ipv6_override %}
|
||||
{%- if network.ipv6|default(false) or ipv6_override or ":" in network.ip_subnet|default("") %}
|
||||
ipv6_address_mode: {get_param: IPv6AddressMode}
|
||||
ipv6_ra_mode: {get_param: IPv6RAMode}
|
||||
{%- else %}
|
||||
|
Loading…
Reference in New Issue
Block a user