[pox-dev] nw_proto not getting added in the flow
Murphy McCauley
murphy.mccauley at gmail.com
Fri Dec 6 12:16:22 PST 2013
No. Metadata wasn't added to OpenFlow until OpenFlow 1.2, I believe, which POX doesn't (yet?) support.
-- Murphy
On Dec 6, 2013, at 12:11 PM, Jayanth Silesh <jayanthsileshs.forums at gmail.com> wrote:
> Hi Murphy,
>
> Also, is there a way to match metadata field and write metadata without using the nicira extensions.
> 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
More information about the pox-dev
mailing list