This commit is contained in:
2023-09-12 07:46:55 +02:00
parent 8067b311fd
commit 26e4c5d5f8
8 changed files with 105 additions and 7 deletions

View File

@ -17,7 +17,11 @@ auto {{ config.device }}
allow-{{ stanza }}
{% endfor -%}
iface {{ config.device }} {{ config.family | default('inet', true) }} {{ config.method | default('static', true) }}
{% if config.method == "static" %}
{% if config.method == "manual" %}
{% if config.hwaddress is defined and config.hwaddress %}
hwaddress {{ config.hwaddress }}
{% endif %}
{% elif config.method == "static" %}
{% if (config.description is defined and config.description) %}
description {{ config.description }}
{% endif %}