<html><head><base href="x-msg://2790/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I assume you mean you want to add a flow to a specific table.  This feature is not available in OpenFlow 1.0.  So you either need to use a higher version of OpenFlow (which POX doesn't support yet and OVS only recently has gained experimental support for), or using a Nicira extension.</div><div><br></div><div>There are actually two different ways.  I think for both of them (and definitely for the second one), you must first enable NXT_FLOW_MOD_TABLE_ID by sending an nx_flow_mod_table_id message to a switch.  Once you've done that, you can:</div><div><br></div><div>1) Use nx_flow_mod. This is the version of flow_mod that uses Nicira Extended Match.</div><div><br></div>2) NXT_FLOW_MOD_TABLE_ID slightly modifies how normal ofp_flow_mods are interpreted, making one byte of the command field be the table ID.  There's a version of ofp_flow_mod in the nicira module called ofp_flow_mod_table_id which adds a table_id field.<div><div><br></div><div>-- Murphy</div><div><br><div><div>On May 30, 2013, at 10:19 AM, Mayumi Park Campos wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; "><div dir="ltr">I just have a question, if I want to add a flow per table I must use de nicira extension? Or there is a way using the other forwarding codes? <div><br></div><div>Thanks :)<br><br><div><hr id="stopSpelling">From: <a href="mailto:rebek_yus@hotmail.com">rebek_yus@hotmail.com</a><br>To: <a href="mailto:murphy.mccauley@gmail.com">murphy.mccauley@gmail.com</a><br>CC: <a href="mailto:pox-dev@lists.noxrepo.org">pox-dev@lists.noxrepo.org</a><br>Subject: RE: [pox-dev] Nicira errors<br>Date: Thu, 30 May 2013 13:52:25 -0300<br><br><div dir="ltr">Thanks for the answers the problem was that I errase a line in the code by mistake <div><br></div><div>Its already working fine</div><div><br></div><div>Sorry for the troubles and thanks again</div><div><br><br><div><hr id="ecxstopSpelling">Subject: Re: [pox-dev] Nicira errors<br>From: <a href="mailto:murphy.mccauley@gmail.com">murphy.mccauley@gmail.com</a><br>Date: Wed, 29 May 2013 12:47:08 -0700<br>CC: <a href="mailto:pox-dev@lists.noxrepo.org">pox-dev@lists.noxrepo.org</a><br>To: <a href="mailto:rebek_yus@hotmail.com">rebek_yus@hotmail.com</a><br><br>Are you sure you've got the upgraded version running?  Just to make sure so we don't spend time chasing down a dead end, try running this component:<div><a href="http://www.noxathome.org/x/Murphy/switch_info.py" target="_blank">http://www.noxathome.org/x/Murphy/switch_info.py</a></div><div><br></div><div>If that does show that you've got the new version running, capture the control traffic using Wireshark/tcpdump or the openflow.debug component (which makes pcap trace files) and post it here.</div><div><br></div><div>-- Murphy</div><div><br><div><div>On May 29, 2013, at 11:17 AM, Mayumi Park Campos wrote:</div><br class="ecxApple-interchange-newline"><blockquote><div class="ecxhmmessage" style="font-size: 12pt; font-family: Calibri; "><div dir="ltr">Hi, <div><br></div><div>I change de ovs version to de 1.9.0 but I stil get the erro message</div><div><br></div><div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; page-break-before: always; "><span lang="EN-US">./pox.py log.level --DEBUG openflow.nicira --convert-packet-in forwarding.l2_nx</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">POX 0.1.0 (betta) / Copyright 2011-2013 James McCauley, et al.</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">INFO:forwarding.l2_nx:Simple NX switch running.</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">DEBUG:core:POX 0.1.0 (betta) going up...</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">DEBUG:core:Running on CPython (2.7.3/Aug 1 2012 05:16:07)</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">DEBUG:core:Platform is Linux-3.2.0-41-generic-pae-i686-with-Ubuntu-12.04-precise</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">INFO:core:POX 0.1.0 (betta) is up.</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">DEBUG:openflow.of_01:Listening on 0.0.0.0:6633</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">INFO:openflow.of_01:[00-50-04-9d-16-db 1] connected</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">ERROR:openflow.of_01:[00-50-04-9d-16-db 1] OpenFlow Error:</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">[00-50-04-9d-16-db 1] Error: header:</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">[00-50-04-9d-16-db 1] Error:   version: 1</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">[00-50-04-9d-16-db 1] Error:   type:    1 (OFPT_ERROR)</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">[00-50-04-9d-16-db 1] Error:   length:  68</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">[00-50-04-9d-16-db 1] Error:   xid:     10</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">[00-50-04-9d-16-db 1] Error: type: OFPET_BAD_REQUEST (1)</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">[00-50-04-9d-16-db 1] Error: code: OFPBRC_EPERM (5)</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">[00-50-04-9d-16-db 1] Error: datalen: 56</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">[00-50-04-9d-16-db 1] Error: 0000: 01 04 00 38 00 00 00 0a  00 00 23 20 00 00 00 0d   ...8......# ....</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">[00-50-04-9d-16-db 1] Error: 0010: 00 00 00 00 00 00 00 00  fe 00 00 00 00 00 00 01   ................</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">[00-50-04-9d-16-db 1] Error: 0020: ff ff ff ff ff ff 00 00  00 00 00 00 00 00 00 00   ................</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">[00-50-04-9d-16-db 1] Error: 0030: 00 00 00 08 ff fb 00 00                            ........</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">INFO:forwarding.l2_nx:[00-50-04-9d-16-db 1] ready</span></div><div><br></div><div><br></div>The thing that I want to do is to install a flow per table so I'm trying to undestand how does this works</div><div><br></div><div>Tkanks </div><div><br></div><div><br><div><hr id="ecxstopSpelling">From:<span class="Apple-converted-space"> </span><a href="mailto:rebek_yus@hotmail.com">rebek_yus@hotmail.com</a><br>To:<span class="Apple-converted-space"> </span><a href="mailto:murphy.mccauley@gmail.com">murphy.mccauley@gmail.com</a><br>CC:<span class="Apple-converted-space"> </span><a href="mailto:pox-dev@lists.noxrepo.org">pox-dev@lists.noxrepo.org</a><br>Subject: RE: [pox-dev] Nicira errors<br>Date: Tue, 28 May 2013 16:52:47 -0300<br><br><div dir="ltr">Thanks Murphy, <div><span style="font-size: 12pt; "><br></span></div><div><span style="font-size: 12pt; ">I'm using the ovs 1.4.6. So I think that would be the problem I'll change to one more recent and see if the problem is fix </span></div><div><br></div><div>Thanks so much </div><div><br></div><div><div><br><div><hr id="ecxstopSpelling">Subject: Re: [pox-dev] Nicira errors<br>From:<span class="Apple-converted-space"> </span><a href="mailto:murphy.mccauley@gmail.com">murphy.mccauley@gmail.com</a><br>Date: Tue, 28 May 2013 12:42:56 -0700<br>CC:<span class="Apple-converted-space"> </span><a href="mailto:pox-dev@lists.noxrepo.org">pox-dev@lists.noxrepo.org</a><br>To:<span class="Apple-converted-space"> </span><a href="mailto:rebek_yus@hotmail.com">rebek_yus@hotmail.com</a><br><br>Are you using a switch that has the NXT_SET_PACKET_IN_FORMAT and NXT_FLOW_MOD_TABLE_ID Nicira extensions?<div><div><br></div><div>I'm not sure which version of Open vSwitch is the first to support these... maybe 1.8?</div><div><br></div><div>Glancing at the code, I actually don't immediately see where the new packet-in format is actually used.  You could try commenting out the lines which try to turn it on (around 81-83 of l2_nx.py in my local copy).</div><div><br></div><div>(As a sidenote, you're supposed to pass --convert-packet-in to openflow.nicira.  The docs show this, but it's not clear enough -- I'll fix it in carp.  But if you're going to try to disable this feature anyway, it shouldn't matter.)</div><div><br></div><div>-- Murphy</div><div><br></div><div><div><div>On May 28, 2013, at 12:23 PM, Mayumi Park Campos wrote:</div><br class="ecxApple-interchange-newline"><blockquote><span class="ecxApple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium; "><div class="ecxhmmessage" style="font-size: 12pt; font-family: Calibri; "><div dir="ltr">Hi all, <div><br></div><div>I try to run pox with this line: </div><div><br></div><div>./pox.py log.level --DEBUG openflow.nicira forwarding.l2_nx</div><div><br></div><div>And get this reply on the screen: </div><div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; page-break-before: always; "><span lang="EN-US">POX 0.1.0 (betta) / Copyright 2011-2013 James McCauley, et al.</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">INFO:forwarding.l2_nx:Simple NX switch running.</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">DEBUG:core:POX 0.1.0 (betta) going up...</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">DEBUG:core:Running on CPython (2.7.3/Aug 1 2012 05:16:07)</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">DEBUG:core:Platform is Linux-3.2.0-41-generic-pae-i686-with-Ubuntu-12.04-precise</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">INFO:core:POX 0.1.0 (betta) is up.</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">DEBUG:openflow.of_01:Listening on 0.0.0.0:6633</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">INFO:openflow.of_01:[00-50-04-9d-16-db 1] connected</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">ERROR:openflow.of_01:[00-50-04-9d-16-db 1] OpenFlow Error:</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">[00-50-04-9d-16-db 1] Error: header:</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">[00-50-04-9d-16-db 1] Error:   version: 1</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">[00-50-04-9d-16-db 1] Error:   type:    1 (OFPT_ERROR)</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">[00-50-04-9d-16-db 1] Error:   length:  32</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">[00-50-04-9d-16-db 1] Error:   xid:     6</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">[00-50-04-9d-16-db 1] Error: type: OFPET_BAD_REQUEST (1)</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">[00-50-04-9d-16-db 1] Error: code: OFPBRC_BAD_SUBTYPE (4)</span></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">[00-50-04-9d-16-db 1] Error: datalen: 20</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">[00-50-04-9d-16-db 1] Error: 0000: 01 04 00 14 00 00 00 06  00 00 23 20 00 00 00 10   ..........# ....</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">[00-50-04-9d-16-db 1] Error: 0010: 00 00 00 01                                        ....</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">INFO:forwarding.l2_nx:[00-50-04-9d-16-db 1] ready</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">And I lose communication with the hosts</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">I don't see where is the problem and don't know how to correct it.</div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br></div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Thanks in advance </div></div></div></div></span></blockquote></div></div></div></div></div></div></div></div></div></div></div></blockquote></div></div></div></div></div></div></div></div></div></span></blockquote></div><br></div></div></body></html>