[ovs-discuss] 回复: replace the openvswitch.ko without losing the bridge interface's configuration

pei Jikui jkpei at hotmail.com
Wed Mar 20 12:39:47 UTC 2019

Thanks for your remind. Yes, this is how I personally resolve this issue.

While for the customer, if they are upgrading their ovs to a new version, will they have to reconfigure the interface?  If this is the case, personally I do not think this is a friendly way to them.

Doesn't OVS have a solution for this?



发送自 Outlook<http://aka.ms/weboutlook>

发件人: Numan Siddique <nusiddiq at redhat.com>
发送时间: 2019年3月20日 19:01
收件人: pei Jikui
抄送: ovs-discuss at openvswitch.org
主题: Re: [ovs-discuss] replace the openvswitch.ko without losing the bridge interface's configuration

On Wed, Mar 20, 2019 at 12:35 PM pei Jikui <jkpei at hotmail.com<mailto:jkpei at hotmail.com>> wrote:

When I replace the openvswitch.ko with a new modified one, the configuration on the bridge such as br0 is lost.  I need to reconfigure its ip address and bring it up again manually.

I think you can use network scripts and restart your network to configure back the br0's ip address whenever you reload openvswitch.ko


Is there any alternative that we could replace the openvswitch.ko without losing the bridge interfaces’ configuration?

The steps I used to replace the openvswitch on the centos.

1)    Compile the openvswitch

make -j `nproc`

make install

2)    Replace the openvswitch.ko

ovs-dpctl del-dp system at ovs-system

rmmod openvswitch

insmod ./datapath/linux/openvswitch.ko

ovs-ctl restart



discuss mailing list
discuss at openvswitch.org<mailto:discuss at openvswitch.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20190320/60cf758f/attachment-0001.html>

More information about the discuss mailing list