[pox-dev] nw_proto not getting added in the flow

Jayanth xForums jayanthsileshs.forums at gmail.com
Thu Dec 5 16:27:01 PST 2013


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
    
    #msg1.match.nw_proto = pkt.ipv4.TCP_PROTOCOL
    msg1.match.of_nw_proto = 6
    msg1.actions.append(nx.nx_action_resubmit.resubmit_table(table = 1))
    event.connection.send(msg1)


Thanks,
Jayanth 
Graduate Student
USC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20131205/8d11a232/attachment.htm>


More information about the pox-dev mailing list