[pve-devel] [PATCH] add bridge_vlan option to brige in /etc/network/interface

Alexandre DERUMIER aderumier at odiso.com
Thu Jan 2 13:33:26 CET 2014


Many thanks,

I'll send a new patch


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

De: "Michael Rasmussen" <mir at datanom.net> 
À: "Alexandre Derumier" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com 
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 <aderumier at odiso.com> 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. 



More information about the pve-devel mailing list