lxc-containers: fix config template for split ipv6 addrs

This commit is contained in:
Astro 2019-06-04 20:49:36 +02:00
parent bc64b39601
commit 3b541b7bf2
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ lxc.network.ipv4.gateway={{ pillar['hosts-inet'][net][gw] }}
lxc.network.ipv6={{ inet6_addr }}/{{ prefix6_len }}
{%- endif %}
{%- set gw6 = conf.get('gw6') %}
{%- if gw6 and hosts[net].get(gw6) %}
{%- if gw6 and hosts.get(net) and hosts[net].get(gw6) %}
lxc.network.ipv6.gateway={{ hosts[net][gw6] }}
{%- endif %}
{%- endfor %}