On Thu, Dec 05, 2013 at 07:31:44PM +0800, chen zhang wrote:
> hello,dear all!
> look about the flow_table using ovs-ofctl dump-flows s1 -O OpenFlow13:
> 
>         cookie=0x0, duration=423.001s, table=0, n_packets=9, n_bytes=546,
> 
> priority=1,in_port=2,dl_dst=00:00:00:00:00:10 actions=output:3
> 
> i want to delete the flow above using flow_mod,and i definite a method like
> this:
> 
> def remove_flow(self, datapath, match):
>         ofproto = datapath.ofproto
>         parser = datapath.ofproto_parser
> 
>         mod = parser.OFPFlowMod(datapath=datapath,
> command=ofproto.OFPFC_DELETE,
>                match=match)
>         datapath.send_msg(mod)
> 
> and i pack the pkts using the method:
>         match = parser.OFPMatch(eth_dst='00:00:00:00:00:10)
>         self.remove_flow(datapath, match)
> 
> but i fail to delete relevant flows,using ovs-ofctl snoop s1,ovs warns that:
>       OFPT_FLOW_MOD (OF1.3) (xid=0xfda9a814): ***decode error:
> OFPFMFC_UNKNOWN***
>       OFPT_ERROR (OF1.3) (xid=0xfda9a814): OFPFMFC_UNKNOWN
> 
> what causes the error?

The flow_mod you're sending message is so badly encoded that OVS can't
even report what it means.  Can you provide a hex dump?
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to