[ovs-discuss] getting openvswitch config integrated debian interfaces network file
Gurucharan Shetty
shettyg at nicira.com
Wed May 21 15:09:40 UTC 2014
On Wed, May 21, 2014 at 2:44 AM, Jogi Hofmüller <jogi at mur.at> wrote:
> Dear all,
>
> Sorry for barging in ...
>
> Am 2014-05-20 16:33, schrieb Ben Pfaff:
>
>>> Could you check the original post and see what is wrong with the
>>> interface file? It will not build up the same config as running the
>>> openvswitch commands.
>>
>> So... what goes wrong?
>
> I have issues with a similar setup here. From what I can tell the
> problem is that the networking init script get's executed before the
> openvswitch-switch init script. Hence no opevnvswitch daemons are running.
>
> Executing the script manually after openvswitch-swich has been executed
> works like a charm.
>
> I am currently using version 1.9.3+git20131029-1.1 from Debian/testing
OVS 1.9.3 lacks full integration of interfaces file with open vswitch.
You will have to manually do a:
ifup --allow=ovs $list_of_bridges
ifdown --allow=ovs $list_of_bridges
Or add the above in a script.
1.10 and later has the following function that does the same in
/etc/init.d/openvswitch-switch
network_interfaces () {
[ -z "${RUNLEVEL}" ] && return
INTERFACES="/etc/network/interfaces"
[ -e "${INTERFACES}" ] || return
bridges=`awk '{ if ($1 == "allow-ovs") { print $2; } }' "${INTERFACES}"`
[ -n "${bridges}" ] && $1 --allow=ovs ${bridges}
}
>
> Regards,
> --
> J.Hofmüller
>
> Ein literarisches Meisterwerk ist nur ein Wörterbuch in Unordnung.
> - Jean Cocteau
>
>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss
>
More information about the discuss
mailing list