Commit e90881e1 authored by Pietsch, Martin's avatar Pietsch, Martin
Browse files

changing import of backend and ha macros

parent 14364c01
...@@ -12,13 +12,14 @@ ...@@ -12,13 +12,14 @@
"socket-name": "/tmp/kea-dhcp4-ctrl.sock" "socket-name": "/tmp/kea-dhcp4-ctrl.sock"
}, },
{% include "kea-dhcp-backends.j2" %} {% from "kea-dhcp-backends.j2" import backends with context %}
{{ backends("ipv4") }}
"valid-lifetime": {{ dhcp_leasetimes["default"] }}, "valid-lifetime": {{ dhcp_leasetimes["default"] }},
{%- if kea_ha_mode != "none" -%} {%- if kea_ha_mode != "none" -%}
{% import "kea-dhcp-ha.j2" as ha %} {% from "kea-dhcp-ha.j2" import ha with context %}
{{ ha.ha("ipv4") }} {{ ha("ipv4") }}
{%- endif -%} {%- endif -%}
{%- set ipv4subnets = [] -%} {%- set ipv4subnets = [] -%}
......
...@@ -11,13 +11,14 @@ ...@@ -11,13 +11,14 @@
"socket-name": "/tmp/kea-dhcp6-ctrl.sock" "socket-name": "/tmp/kea-dhcp6-ctrl.sock"
}, },
{% include "kea-dhcp-backends.j2" %} {% from "kea-dhcp-backends.j2" import backends with context %}
{{ backends("ipv6") }}
"valid-lifetime": {{ dhcp_leasetimes["default"] }}, "valid-lifetime": {{ dhcp_leasetimes["default"] }},
{%- if kea_ha_mode != "none" -%} {%- if kea_ha_mode != "none" -%}
{% import "kea-dhcp-ha.j2" as ha %} {% from "kea-dhcp-ha.j2" import ha with context %}
{{ ha.ha("ipv6") }} {{ ha("ipv6") }}
{%- endif -%} {%- endif -%}
{%- set ipv6subnets = [] -%} {%- set ipv6subnets = [] -%}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment