Many thanks,

I'll send a new patch


----- Mail original ----- 

De: "Michael Rasmussen" <[email protected]> 
À: "Alexandre Derumier" <[email protected]> 
Cc: [email protected] 
Envoyé: Jeudi 2 Janvier 2014 12:26:05 
Objet: Re: [pve-devel] [PATCH] add bridge_vlan option to brige in 
/etc/network/interface 

On Thu, 2 Jan 2014 08:42:09 +0100 
Alexandre Derumier <[email protected]> wrote: 

> +bridge_parse_ports $INTERFACES | while read i 
> +do 
> + for port in $i 
> + do 
> + if [ "$MODE" = "start" ] && [ -d /sys/class/net/$IFACE/brif/$port ]; then 
> + #we allow vlan to pass through attached interface 
> + if [ -n "$IF_BRIDGE_VLAN" ] 
> + then 
> + case "$port" in 
> + eth*|bond*|wlan*) 
> + bridge vlan add dev $port vid $IF_BRIDGE_VLAN 
> + ;; 
> + esac 
> + fi 
> + fi 
> + done 
> +done 
> + 
Above should be replaced with this: 
bridge_parse_ports $INTERFACES | while read i 
do 
for port in $i 
do 
if [ "$MODE" = "start" ] && [ -d /sys/class/net/$IFACE/brif/$port 
]; then 
#we allow vlan to pass through attached interface 
if [ -n "$IF_BRIDGE_VLAN" ] 
then 
if [[ $port =~ ^(eth|bond|wlan)[0-9]{1,2}$ ]]; then 
bridge vlan add dev $port vid $IF_BRIDGE_VLAN 
fi 
fi 
fi 
done 
done 


-- 
Hilsen/Regards 
Michael Rasmussen 

Get my public GnuPG keys: 
michael <at> rasmussen <dot> cc 
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E 
mir <at> datanom <dot> net 
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C 
mir <at> miras <dot> org 
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917 
-------------------------------------------------------------- 
/usr/games/fortune -es says: 
The trouble with a lot of self-made men is that they worship their 
creator. 
_______________________________________________
pve-devel mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to