<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Thank you so much Murphy for the reply. I will try them out now.</div> <div id="bloop_sign_1386359708019248128"><span style="font-family:helvetica,arial;font-size:13px"></span><pre style="line-height: normal;">Thanks,
Jayanth 
Graduate Student
USC</pre><pre style="line-height: normal;"><br></pre></div> <br><p style="color:#A0A0A8;">On December 6, 2013 at 10:55:46 AM, Murphy McCauley (<a href="mailto://murphy.mccauley@gmail.com">murphy.mccauley@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div>I am pretty sure this code will cause an exception, since I don't think the attributes you're setting on the match correspond to NXM types.  Does it not?
<br>
<br>See inline...
<br>
<br>On Dec 5, 2013, at 4:27 PM, Jayanth xForums <jayanthsileshs.forums@gmail.com> wrote:
<br>
<br>> Hi All,
<br>>  
<br>> I have written a small pox as follows but in the OVS 2.0 it does not add the nw_proto in the flow table.
<br>>  
<br>> The pox code is as follows:
<br>>     
<br>>    # Turn on Nicira packet_ins
<br>>     msg = nx.nx_packet_in_format()
<br>>     event.connection.send(msg)
<br>>  
<br>>     # Turn on ability to specify table in flow_mods
<br>>     msg = nx.nx_flow_mod_table_id()
<br>>     event.connection.send(msg)
<br>>  
<br>>     msg1 = nx.nx_flow_mod()
<br>>     #msg1.match = nx.nx_match()
<br>>     msg1.match.of_dl_type = pkt.ethernet.IP_TYPE
<br>
<br>Try .eth_type = pkt.ethernet.IP_TYPE
<br>
<br>>     #msg1.match.nw_proto = pkt.ipv4.TCP_PROTOCOL
<br>>     msg1.match.of_nw_proto = 6
<br>
<br>Try .ip_proto = 6
<br>
<br>>     msg1.actions.append(nx.nx_action_resubmit.resubmit_table(table = 1))
<br>>     event.connection.send(msg1)
<br>>  
<br>>  
<br>> Thanks,
<br>> Jayanth  
<br>> Graduate Student
<br>> USC
<br>
<br>
<br>Alternately, instead of using nx_flow_mod, use ofp_flow_mod_table_id, which is just like a normal ofp_flow_mod except with a table_id.
<br>
<br>-- Murphy</div></div></span></blockquote></body></html>