[pve-devel] [PATCH] add vlan aware bridge ifupdown script

Alexandre DERUMIER aderumier at odiso.com
Fri Jul 24 19:48:23 CEST 2015


I'll test ifupdown2 tomorrow. (python)

https://github.com/CumulusNetworks/ifupdown2


But it missing tunnel interfaces, and I known that some users use them.

(and it's also missing openvswitch syntax).

----- Mail original -----
De: "Wolfgang Bumiller" <w.bumiller at proxmox.com>
À: "aderumier" <aderumier at odiso.com>, "dietmar" <dietmar at proxmox.com>
Cc: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Vendredi 24 Juillet 2015 18:51:40
Objet: Re: [pve-devel] [PATCH] add vlan aware bridge ifupdown script

> On July 24, 2015 at 6:42 PM Dietmar Maurer <dietmar at proxmox.com> wrote: 
> > I have simply copy/paste current code from /etc/network/if-pre-up.d/vlan 
> > So, it should work with bash and dash ? 
> 
> package libpve-common-perl does not depend on bash, so its best to avoid bash? 
> Or should we add a dependency to make code easier? 

The current version works in Dash anyway. I just consider Dash inferior since 
bash makes a bunch of string handling easier. 
Though I saw that ${x//} actually doesn't take a complete regex anyway, so you'd 
have to use the =~ operator and that's more code again... 
(I'm also a FreeBSD user so suggesting Bash as a dependency probably reserved me 
a slot in hell, too ;-) ) 



More information about the pve-devel mailing list