Skip to content

Commit

Permalink
Fix the inclusion of kea_*_raw_options
Browse files Browse the repository at this point in the history
This produced invalid syntax before, but should now work as expected.
  • Loading branch information
JonasAlfredsson committed Jun 13, 2024
1 parent bf5e1c7 commit 0886b10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions templates/dhcp4.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"renew-timer": {{ kea_dhcp4_renew_timer | int }},
"rebind-timer": {{ kea_dhcp4_rebind_timer | int }},

{% if kea_dhcp4_raw_options | length > 0 %}
{{ kea_dhcp4_raw_options | to_nice_json(indent=4, ensure_ascii=False ) | indent(8, False) }}
{% for key, value in kea_dhcp4_raw_options.items() %}
"{{ key }}": {{ value | to_nice_json(indent=4, ensure_ascii=False) | indent(8, False) }},

{% endif %}
{% endfor %}
// We include the subnet file separately to make this one less cluttered.
<?include "/kea/config/subnet4.json"?>

Expand Down
6 changes: 3 additions & 3 deletions templates/dhcp6.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
"renew-timer": {{ kea_dhcp6_renew_timer | int }},
"rebind-timer": {{ kea_dhcp6_rebind_timer | int }},

{% if kea_dhcp6_raw_options | length > 0 %}
{{ kea_dhcp6_raw_options | to_nice_json(indent=4, ensure_ascii=False ) | indent(8, False) }}
{% for key, value in kea_dhcp6_raw_options.items() %}
"{{ key }}": {{ value | to_nice_json(indent=4, ensure_ascii=False) | indent(8, False) }},

{% endif %}
{% endfor %}
// We include the subnet file separately to make this one less cluttered.
<?include "/kea/config/subnet6.json"?>

Expand Down

0 comments on commit 0886b10

Please sign in to comment.