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
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to