From d5b0fd85c8059e158ab2d304a3e56cea0f47f931 Mon Sep 17 00:00:00 2001 From: Jeltz Date: Sat, 27 Aug 2022 09:18:16 +0200 Subject: [PATCH] ifupdown2: add bridge_disable_pvid option --- roles/ifupdown2/templates/interfaces.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/ifupdown2/templates/interfaces.j2 b/roles/ifupdown2/templates/interfaces.j2 index 63eba91..eecf4fe 100644 --- a/roles/ifupdown2/templates/interfaces.j2 +++ b/roles/ifupdown2/templates/interfaces.j2 @@ -25,5 +25,9 @@ iface {{ name }} {% if iface.vlan_raw_device is defined %} vlan-raw-device {{ iface.vlan_raw_device }} {% endif %} +{% if iface.bridge_disable_pvid | default(false) %} + bridge-pvid 0 + post-up bridge vlan del dev {{ name }} vid 1 self +{% endif %} {% endfor %}