diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-03 10:24:20 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-03 10:26:43 +0100 |
commit | cdc1748b8489251a45875736a99633740529ea0c (patch) | |
tree | d2d6a4c64bc7e0152a38b5805bbeec56213e92ae /data/templates/dhcp-server/dhcpd.conf.tmpl | |
parent | cb16068ccde3b39f2e0e2aa450da7df55f782c1c (diff) | |
download | vyos-1x-cdc1748b8489251a45875736a99633740529ea0c.tar.gz vyos-1x-cdc1748b8489251a45875736a99633740529ea0c.zip |
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.
Diffstat (limited to 'data/templates/dhcp-server/dhcpd.conf.tmpl')
-rw-r--r-- | data/templates/dhcp-server/dhcpd.conf.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
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; |