From bc64b396012bf0e374c9de18b941ff7df0731614 Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 4 Jun 2019 20:43:33 +0200 Subject: [PATCH] lxc-containers: fix config template for split ipv6 addrs --- salt/lxc-containers/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/lxc-containers/config b/salt/lxc-containers/config index c84301a..af71e86 100644 --- a/salt/lxc-containers/config +++ b/salt/lxc-containers/config @@ -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 %} +{%- if gw6 and hosts[net].get(gw6) %} lxc.network.ipv6.gateway={{ hosts[net][gw6] }} {%- endif %} {%- endfor %}