<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);">
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
Ben,</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
Much thanks for your quick reply.</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
1) Yes, I DID check the logs located at&nbsp;<span style="margin: 0px; font-size: 14.6667px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255); display: inline !important">/usr/local/ovs/var/log/openvswitch. The message is just the same as the one popped
 up for ovs-vsctl command.</span></div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
<span style="margin: 0px; font-size: 14.6667px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255); display: inline !important">&nbsp; &nbsp; Following is the pieces from the log files.</span></div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
<span style="margin: 0px; font-size: 14.6667px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255); display: inline !important">
<p style="margin: 0px; font: 12px Helvetica">2019-01-22T16:34:08.333Z|00051|bridge|WARN|could not open network device port1 (No such device)</p>
<br>
</span></div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
2) I also tried with the older version 2.0.0 and the results are different with newer version such as 2.11.90. Please see the following blocks.</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
&nbsp; &nbsp; a) for the version 2.11.90. The error message will occure since port1 does not exist.</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
<p style="margin: 0px; font: 12px Helvetica">[root@localhost ovs]# ovs-vsctl --version</p>
<p style="margin: 0px; font: 12px Helvetica">ovs-vsctl (Open vSwitch) 2.11.90</p>
<p style="margin: 0px; font: 12px Helvetica">DB Schema 7.16.1</p>
<p style="margin: 0px; font: 12px Helvetica; min-height: 14px"><br>
</p>
<p style="margin: 0px; font: 12px Helvetica">[root@localhost ovs]# ovs-vsctl show</p>
<p style="margin: 0px; font: 12px Helvetica">ad38d546-6cbc-4291-89f9-f2b4adb2f68d</p>
<p style="margin: 0px; font: 12px Helvetica"><span style="margin: 0px">&nbsp; &nbsp;<span>&nbsp;</span></span>Bridge &quot;br0&quot;</p>
<p style="margin: 0px; font: 12px Helvetica"><span style="margin: 0px">&nbsp; &nbsp; &nbsp; &nbsp;<span>&nbsp;</span></span>Port &quot;br0&quot;</p>
<p style="margin: 0px; font: 12px Helvetica"><span style="margin: 0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span>&nbsp;</span></span>Interface &quot;br0&quot;</p>
<p style="margin: 0px; font: 12px Helvetica"><span style="margin: 0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span>&nbsp;</span></span>type: internal</p>
<p style="margin: 0px; font: 12px Helvetica"><span style="margin: 0px">&nbsp; &nbsp;<span>&nbsp;</span></span>ovs_version: &quot;2.11.90&quot;</p>
<p style="margin: 0px; font: 12px Helvetica">[root@localhost ovs]# ovs-vsctl add-port br0 port1</p>
<p style="margin: 0px; font: 12px Helvetica">ovs-vsctl: Error detected while setting up 'port1': could not open network device port1 (No such device).<span style="margin: 0px">&nbsp;<span>&nbsp;</span></span>See ovs-vswitchd log for details.</p>
<p style="margin: 0px; font: 12px Helvetica">ovs-vsctl: The default log directory is &quot;/usr/local/var/log/openvswitch&quot;.</p>
<p style="margin: 0px; font: 12px Helvetica; min-height: 14px"><br>
</p>
<p style="margin: 0px; font: 12px Helvetica; min-height: 14px"><br>
</p>
<p style="margin: 0px; font: 12pt Calibri, Helvetica, sans-serif; min-height: 14px">
b) For version 2.0.0. The error message will not occur even if the port1 was NOT pre-created.&nbsp;</p>
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
<p style="margin: 0px; font: 12px Helvetica">root@localhost ~]# ovs-vsctl --version</p>
<p style="margin: 0px; font: 12px Helvetica">ovs-vsctl (Open vSwitch) 2.0.0</p>
<p style="margin: 0px; font: 12px Helvetica">Compiled Apr 19 2018 17:57:34</p>
<p style="margin: 0px; font: 12px Helvetica">[root@localhost ~]# ovs-vsctl add-br br0</p>
<p style="margin: 0px; font: 12px Helvetica">[root@localhost ~]# ovs-vsctl add-port br0 port1</p>
<p style="margin: 0px; font: 12px Helvetica">[root@localhost ~]# ovs-vsctl show</p>
<p style="margin: 0px; font: 12px Helvetica">3bfbc88a-0329-4594-b21d-2d9fd8d97c27</p>
<p style="margin: 0px; font: 12px Helvetica"><span style="margin: 0px">&nbsp; &nbsp;<span>&nbsp;</span></span>Bridge &quot;br0&quot;</p>
<p style="margin: 0px; font: 12px Helvetica"><span style="margin: 0px">&nbsp; &nbsp; &nbsp; &nbsp;<span>&nbsp;</span></span>Port &quot;br0&quot;</p>
<p style="margin: 0px; font: 12px Helvetica"><span style="margin: 0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span>&nbsp;</span></span>Interface &quot;br0&quot;</p>
<p style="margin: 0px; font: 12px Helvetica"><span style="margin: 0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span>&nbsp;</span></span>type: internal</p>
<p style="margin: 0px; font: 12px Helvetica"><span style="margin: 0px">&nbsp; &nbsp; &nbsp; &nbsp;<span>&nbsp;</span></span>Port &quot;port1&quot;</p>
<p style="margin: 0px; font: 12px Helvetica"><span style="margin: 0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span>&nbsp;</span></span>Interface &quot;port1&quot;</p>
<p style="margin: 0px; font: 12px Helvetica"><span style="margin: 0px">&nbsp; &nbsp;<span>&nbsp;</span></span>ovs_version: &quot;2.0.0&quot;</p>
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
<br>
</div>
<div style="margin: 0px; font-size: 15px; font-family: &quot;Microsoft Yahei UI&quot;, Verdana, Simsun, &quot;Segoe UI&quot;, -apple-system, system-ui, Roboto, &quot;Helvetica Neue&quot;, sans-serif; color: rgb(33, 33, 33); background-color: rgb(255, 255, 255)">
<p style="margin-top: 0px; margin-bottom: 0px">Thanks</p>
<p style="margin-top: 0px; margin-bottom: 0px"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px">Pei</p>
</div>
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="signature">
<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> Ben Pfaff &lt;blp@ovn.org&gt;<br>
<b>发送时间:</b> 2019年1月24日 11:51<br>
<b>收件人:</b> pei Jikui<br>
<b>抄送:</b> ovs-discuss@openvswitch.org<br>
<b>主题:</b> Re: [ovs-discuss] Help about &quot;ovs-vsctl add-port&quot; command</font>
<div>&nbsp;</div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">On Thu, Jan 24, 2019 at 03:10:48AM &#43;0000, pei Jikui wrote:<br>
&gt; 1) When I tried to add a port in ovs-version 2.8.1 via &quot;ovs-vsctl add-port br0 port1&quot; command, the following error hint occurred.<br>
&gt; <br>
&gt; &quot;ovs-vsctl: Error detected while setting up 'poas': could not open network device poas (No such device).&nbsp; See ovs-vswitchd log for details.<br>
&gt; ovs-vsctl: The default log directory is &quot;/usr/local/ovs/var/log/openvswitch&quot;.&quot;<br>
<br>
We wrote this error message to encourage people to look at the log.&nbsp; It<br>
even says where the log is so that you can look at it more easily.<br>
Despite that, you have not told us what is in the log.&nbsp; Can you explain<br>
how the error message could make this clearer?&nbsp; We really are trying to<br>
be helpful here, but numerous people read the error message and don't<br>
actually pay any attention to it.&nbsp; Why?<br>
<br>
&gt; 2) While the same command works well in ovs version2.0.0.<br>
&gt; <br>
&gt; 3) I googled and there is a answer saying that before adding a port into ovs, the port must be seen via &quot;ifconfig -a&quot; which mean it must exist before being added into ovs.<br>
&gt; <br>
&gt; Is the answer 3) is right? If yes, this is a behavior change from 2.0.0.? If 3) is not the right answer, how I could fix this?<br>
<br>
3) is right and it has not changed since the very first version of OVS<br>
in 2009.<br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>