[pve-devel] [PATCH pve-manager] ifupdown1: bridgevlan: add bridge-vids list support
Alexandre Derumier
aderumier at odiso.com
Tue Jan 7 03:05:19 CET 2020
like ifupdown2, support multiple values
iface vmbr0
bridge-vids 2 4 5-10 70
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
network-hooks/bridgevlan | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/network-hooks/bridgevlan b/network-hooks/bridgevlan
index ea043575..3965bfda 100755
--- a/network-hooks/bridgevlan
+++ b/network-hooks/bridgevlan
@@ -41,7 +41,10 @@ do
# we allow vlan to pass through attached interface
if [ -n "$IF_BRIDGE_VIDS" ]
then
- bridge vlan add dev $port vid $IF_BRIDGE_VIDS
+ for VID in $IF_BRIDGE_VIDS
+ do
+ bridge vlan add dev $port vid $VID
+ done
else
bridge vlan add dev $port vid 2-4094
fi
--
2.20.1
More information about the pve-devel
mailing list