Commit 9dfc1feb authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

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

(cherry picked from commit 89ef76aa)
parent f8233bd0
{#
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 %}
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