From cdc1748b8489251a45875736a99633740529ea0c Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 3 Jan 2021 10:24:20 +0100 Subject: dhcp: T3180: bugfix assignment of sliced ranges to config dict A reference to a dictionary key obtained by a for loop can not be used to update values inside that dictionaries key. You must use the original path to the nested dictionaries key. --- data/templates/dhcp-server/dhcpd.conf.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data') diff --git a/data/templates/dhcp-server/dhcpd.conf.tmpl b/data/templates/dhcp-server/dhcpd.conf.tmpl index 56a5f4bcd..ff2e31998 100644 --- a/data/templates/dhcp-server/dhcpd.conf.tmpl +++ b/data/templates/dhcp-server/dhcpd.conf.tmpl @@ -35,12 +35,12 @@ option wpad-url code 252 = text; {% endfor %} {% endif %} -# Failover configuration {% if shared_network_name is defined and shared_network_name is not none %} {% for network, network_config in shared_network_name.items() if network_config.disable is not defined %} {% if network_config.subnet is defined and network_config.subnet is not none %} {% for subnet, subnet_config in network_config.subnet.items() %} {% if subnet_config.failover is defined and subnet_config.failover is defined and subnet_config.failover.name is defined and subnet_config.failover.name is not none %} +# Failover configuration for {{ subnet }} failover peer "{{ subnet_config.failover.name }}" { {% if subnet_config.failover.status == 'primary' %} primary; -- cgit v1.2.3