refactor: Continue removing macro dependencies from templates

This commit is contained in:
Daniel Akulenok
2024-05-14 10:31:16 +02:00
committed by Daniel Akulenok
parent fdf150c640
commit 18b5c5a20f
3 changed files with 5 additions and 10 deletions

View File

@@ -1,8 +1,6 @@
{% macro primaries(primaries) %}
{% for primary in primaries if primaries is iterable %}
{% for primary in item.primaries if primaries is iterable %}
primaries {{ primary.name -}}
{{ (' port ' + primary.port | string) if primary.port is defined and primary.port -}}
{{ (' dscp ' + primary.dscp | string) if primary.dscp is defined and primary.dscp }} {
{{ functions.list_address_port_key_tls(primary.addresses) -}}};
{% endfor %}
{% endmacro %}