mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
(configd/templates) add macro directory for shared macro's
This commit is contained in:
parent
0f4068f0da
commit
89ef76aa2e
@ -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 %}
|
||||
Loading…
x
Reference in New Issue
Block a user