diff --git a/roles/ifupdown2/templates/interfaces.j2 b/roles/ifupdown2/templates/interfaces.j2 index a1e8f8a..8c89f83 100644 --- a/roles/ifupdown2/templates/interfaces.j2 +++ b/roles/ifupdown2/templates/interfaces.j2 @@ -37,5 +37,28 @@ iface {{ name }} ipv6-addrgen {{ iface.ipv6_addrgen | ternary("yes", "no") }} {% endif %} +{% if iface.mtu is defined %} + mtu {{ iface.mtu | int }} +{% endif %} +{% if iface.vxlan_learning is defined %} + vxlan-learning {{ iface.vxlan_learning + | ternary("yes", "no") }} +{% endif %} +{% if iface.vxlan_physdev is defined %} + vxlan-physdev {{ iface.vxlan_physdev }} +{% endif %} +{% if iface.vxlan_port is defined %} + vxlan-port {{ iface.vxlan_port | int }} +{% endif %} +{% if iface.vxlan_mcastgrp is defined %} + vxlan-mcastgrp {{ iface.vxlan_mcastgrp }} +{% endif %} +{% if iface.bridge_vlan_vni_map is defined %} + bridge-vlan-vni-map {{ iface.bridge_vlan_vni_map }} +{% endif %} +{% if iface.bridge_learning is defined %} + bridge-learning {{ iface.bridge_learning + | ternary("yes", "no") }} +{% endif %} {% endfor %}