ifupdown1: bridgevlan: add bridge-vids list support

like ifupdown2, support multiple values

iface vmbr0
   bridge-vids 2 4 5-10 70

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2020-01-08 04:31:18 +01:00 committed by Thomas Lamprecht
parent 6b6cd0e496
commit 311b67c75c

View File

@ -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