ansible-role-systemd_networkd/templates/systemd-link.j2
Kevin Carter 2921156fd1 Move link options to a link file
The link options being set within the network files, which functional,
does not expose all of the link capabilities we have within a specific
link file. This change implements link files per network interface
giving the user the ability to customize links as they need.

Change-Id: Ie999c541a6a566141e81c6d9f95b8a30bbbefa8c
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-12-27 21:31:16 -06:00

14 lines
228 B
Django/Jinja

# {{ ansible_managed }}
[Match]
Name={{ item.1.interface }}
[Link]
{% if item.1.mtu is defined %}
MTUBytes={{ item.1.mtu }}
{% endif %}
{% for key, value in systemd_networkd_link.items() %}
{{ key }}={{ value }}
{% endfor %}