From bc98517c77f7236b69b01227a8468ab4d1565bb2 Mon Sep 17 00:00:00 2001 From: Jeltz Date: Sun, 28 Aug 2022 04:26:09 +0200 Subject: [PATCH] ifupdown2: add support for vxlan --- roles/ifupdown2/templates/interfaces.j2 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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 %}