<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks for your remind. Yes, this is how I personally resolve this issue.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
While for the customer, if they are upgrading their ovs to a new version, will they have to reconfigure the interface?&nbsp; If this is the case, personally I do not think this is a friendly way to them.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Doesn't OVS have a solution for this?</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">THanks.</span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Jikui</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="signature">
<p>发送自 <a href="http://aka.ms/weboutlook">Outlook</a><br>
</p>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>发件人:</b> Numan Siddique &lt;nusiddiq@redhat.com&gt;<br>
<b>发送时间:</b> 2019年3月20日 19:01<br>
<b>收件人:</b> pei Jikui<br>
<b>抄送:</b> ovs-discuss@openvswitch.org<br>
<b>主题:</b> Re: [ovs-discuss] replace the openvswitch.ko without losing the bridge interface's configuration</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">
<div dir="ltr"><br>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Wed, Mar 20, 2019 at 12:35 PM pei Jikui &lt;<a href="mailto:jkpei@hotmail.com">jkpei@hotmail.com</a>&gt; wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:&quot;Times New Roman&quot;,serif">
When I replace the openvswitch.ko with a new modified one, the configuration on the bridge such as br0 is lost.<span>&nbsp;
</span>I need to reconfigure its ip address and bring it up again manually.</p>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>I think you can use network scripts and restart your network to configure back the br0's ip address whenever you reload openvswitch.ko</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks</div>
<div>Numan</div>
<div>&nbsp;</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:&quot;Times New Roman&quot;,serif">
</p>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:&quot;Times New Roman&quot;,serif">
</p>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:&quot;Times New Roman&quot;,serif">
Is there any alternative that we could replace the openvswitch.ko without losing the bridge interfaces’ configuration?</p>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:&quot;Times New Roman&quot;,serif">
</p>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:&quot;Times New Roman&quot;,serif">
</p>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:&quot;Times New Roman&quot;,serif">
The steps I used to replace the openvswitch on the centos.</p>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:&quot;Times New Roman&quot;,serif">
</p>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:&quot;Times New Roman&quot;,serif">
</p>
<p style="font-size:12pt; margin:0cm 0cm 0.0001pt 36pt; font-family:Calibri,sans-serif">
<span><span>1)<span style="font:7pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span></span>Compile the openvswitch</p>
<p style="font-size:12pt; font-family:&quot;Times New Roman&quot;,serif; margin:0cm 0cm 0.0001pt 36pt">
<span style="font-size:10pt; font-family:Consolas; color:rgb(51,51,51); background:rgb(247,247,247)">make -j `nproc`</span><span style="font-size:10pt; font-family:Consolas; color:rgb(51,51,51)"></span></p>
<p style="font-size:12pt; font-family:&quot;Times New Roman&quot;,serif; margin:0cm 0cm 0.0001pt 36pt">
<span style="font-size:10pt; font-family:Consolas; color:rgb(51,51,51); background:rgb(247,247,247)">make install</span><span style="font-size:10pt; font-family:Consolas; color:rgb(51,51,51)"></span></p>
<p style="font-size:12pt; margin:0cm 0cm 0.0001pt 36pt; font-family:Calibri,sans-serif">
<span><span>2)<span style="font:7pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp; </span></span></span>Replace the openvswitch.ko</p>
<p style="font-size:12pt; font-family:&quot;Times New Roman&quot;,serif; margin:0cm 0cm 0.0001pt 36pt">
<span style="font-size:10.5pt; font-family:Arial,sans-serif; color:black">ovs-dpctl del-dp system@ovs-system</span></p>
<p style="font-size:12pt; font-family:&quot;Times New Roman&quot;,serif; margin:0cm 0cm 0.0001pt 36pt">
<span style="font-size:10.5pt; font-family:Arial,sans-serif; color:black">rmmod openvswitch</span></p>
<p style="font-size:12pt; font-family:&quot;Times New Roman&quot;,serif; margin:0cm 0cm 0.0001pt 36pt">
<span style="font-size:11pt; font-family:Calibri,sans-serif">insmod ./datapath/linux/openvswitch.ko</span></p>
<p style="font-size:12pt; font-family:&quot;Times New Roman&quot;,serif; margin:0cm 0cm 0.0001pt 36pt">
<span style="font-size:11pt; font-family:Calibri,sans-serif">ovs-ctl restart</span></p>
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_gmail-m_7373237247824805671signature">
<p>Thanks.</p>
<p><br>
</p>
<p>Jikui</p>
</div>
</div>
_______________________________________________<br>
discuss mailing list<br>
<a href="mailto:discuss@openvswitch.org" target="_blank">discuss@openvswitch.org</a><br>
<a href="https://mail.openvswitch.org/mailman/listinfo/ovs-discuss" rel="noreferrer" target="_blank">https://mail.openvswitch.org/mailman/listinfo/ovs-discuss</a><br>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</body>
</html>