(configd/templates) add macro directory for shared macro's

This commit is contained in:
Ad Schellevis 2016-03-25 10:50:18 +01:00
parent 0f4068f0da
commit 89ef76aa2e

View File

@ -0,0 +1,8 @@
{#
macro physical_interface, return physical interface by name (e.g. lan -> em0)
#}
{% macro physical_interface(name) -%}
{% if helpers.exists('interfaces.'+name+'.if') %}
{{ helpers.getNodeByTag('interfaces.'+name+'.if') }}
{% endif %}
{%- endmacro %}