[pve-devel] [PATCH 1/3] pass bridge value to vznetcfg script

Alexandre DERUMIER aderumier at odiso.com
Mon May 26 08:37:08 CEST 2014


>>And how do we get new value for vlan tag (if vlan changed)?

vlan tag is defined in bridge name:

vmbrXvY


(and also firewall enable|disable)

vmbrX(v(\d+))?(f)?


like this, it also don't break current user configs.

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

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre Derumier" <aderumier at odiso.com>, pve-devel at pve.proxmox.com 
Envoyé: Lundi 26 Mai 2014 05:58:28 
Objet: RE: [pve-devel] [PATCH 1/3] pass bridge value to vznetcfg script 

> this is ok for vmstart, 
> but if we want to change veth value online (new bridge, new vlan, new firewall) 
> or hotplug a new card, with -netif_add 
> 
> this is not currently possible, 
> because we read the bridge from vmid.conf in vznetaddbr, but vmid.conf is 
> updated after -netif_add (and vznetaddbr). 
> So we never have new value. 
> 
> This patch pass bridge value as argument to venetcfg script. 
> We can now compare new and old value in vznetaddr, and see if it's an update 
> or a new tap create. 

And how do we get new value for vlan tag (if vlan changed)? 



More information about the pve-devel mailing list