[pox-dev] nw_proto not getting added in the flow
Jayanth Silesh
jayanthsileshs.forums at gmail.com
Fri Dec 6 11:55:41 PST 2013
Thank you so much Murphy for the reply. I will try them out now.
Thanks,
Jayanth
Graduate Student
USC
On December 6, 2013 at 10:55:46 AM, Murphy McCauley (murphy.mccauley at gmail.com) wrote:
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?
See inline...
On Dec 5, 2013, at 4:27 PM, Jayanth xForums <jayanthsileshs.forums at gmail.com> wrote:
> Hi All,
>
> 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.
>
> The pox code is as follows:
>
> # Turn on Nicira packet_ins
> msg = nx.nx_packet_in_format()
> event.connection.send(msg)
>
> # Turn on ability to specify table in flow_mods
> msg = nx.nx_flow_mod_table_id()
> event.connection.send(msg)
>
> msg1 = nx.nx_flow_mod()
> #msg1.match = nx.nx_match()
> msg1.match.of_dl_type = pkt.ethernet.IP_TYPE
Try .eth_type = pkt.ethernet.IP_TYPE
> #msg1.match.nw_proto = pkt.ipv4.TCP_PROTOCOL
> msg1.match.of_nw_proto = 6
Try .ip_proto = 6
> msg1.actions.append(nx.nx_action_resubmit.resubmit_table(table = 1))
> event.connection.send(msg1)
>
>
> Thanks,
> Jayanth
> Graduate Student
> USC
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.
-- Murphy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20131206/ed469d40/attachment-0002.htm>
More information about the pox-dev
mailing list