[pve-devel] kernel 3.10 : bridge vlan test

Alexandre DERUMIER aderumier at odiso.com
Wed Dec 18 09:33:28 CET 2013


>>I just created a new git repository so that we can test with latest code: 
>>
>>https://git.proxmox.com/?p=openvswitch.git;a=summary 
>>
>>Pre-compiled packages can be found in the pvetest repository. 

Thanks, I'll test it today.


Here some notes about /etc/network/interface management with their provide script:

if we defined this kind of openswitch with bond0 or port:

allow-ovs br0
iface br0 inet manual
    ovs_type OVSBridge
    ovs_ports eth0


we need to defined eth0 like this

allow-br0 eth0
iface eth0 inet manual
    ovs_bridge br0
    ovs_type OVSPort


But if we do this, we can't defined the eth0 in the classic way.
So I think it's strange..

could be better to be able to do

allow-ovs br0
iface br0 inet manual
    ovs_type OVSBridge
#    ovs_ports eth0
     bridge_ports eth0



in ifupdown.sh:

       OVSBridge)
                ovs_vsctl -- --may-exist add-br "${IFACE}" ${IF_OVS_OPTIONS}\
                         ${OVS_EXTRA+-- $OVS_EXTRA}

                if [ ! -z "${IF_OVS_PORTS}" ]; then
                    ifup --allow="${IFACE}" ${IF_OVS_PORTS}
                fi

                + if [ ! -z "${IF_BRIDGE_PORTS}" ]; then
                +      ovs_vsctl -- --may-exist add-port "${IFACE}" "${IF_LINUX_PORTS}"
                + fi



Or maybe can we create from statch a script, to keep syntax almost same than classic configuration.



Another important thing:

openvswitch keep the configuration in /var/lib/openvswitch/conf.db (json database).

But if we remove/change configuration in /etc/network/interfaces, on reboot it doesn't change the conf.db.
So, maybe it's better to delete the conf.db on reboot, and recreate it from /etc/network/interfaces on start.







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

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: "pve-devel" <pve-devel at pve.proxmox.com> 
Envoyé: Mercredi 18 Décembre 2013 08:58:00 
Objet: RE: [pve-devel] kernel 3.10 : bridge vlan test 

> Full commit is here 
> https://github.com/horms/openvswitch/commit/86b87c92669daca4c69f412de 
> 2cc42c255368c4f 
> 
> seem that it's not yet available in current wheezy package, but it's just a new ifupdown.sh script 

I just created a new git repository so that we can test with latest code: 

https://git.proxmox.com/?p=openvswitch.git;a=summary 

Pre-compiled packages can be found in the pvetest repository. 


More information about the pve-devel mailing list