10 lines
458 B
Django/Jinja
10 lines
458 B
Django/Jinja
{% macro parental_agents(parental_agents) %}
|
|
{% for agent in parental_agents if parental_agents is iterable %}
|
|
parental-agents {{ agent.name -}}
|
|
{{ (' port ' + agent.port | string) if agent.port is defined and agent.port -}}
|
|
{{ (' dscp ' + agent.dscp | string) if agent.dscp is defined and agent.dscp }} {
|
|
{% filter indent(bind9_config_indent, true) %}
|
|
{{ functions.list_address_port_key_tls(agent.addresses) -}}
|
|
{% endfilter %}};
|
|
{% endfor %}
|
|
{% endmacro %} |