Commit 89ef76aa authored by Ad Schellevis's avatar Ad Schellevis

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

parent 0f4068f0
{#
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