[ovs-discuss] about flow_mod

chen zhang 3zhangchen9211 at gmail.com
Thu Dec 5 11:27:25 UTC 2013


hello,dear all!
        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:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20131205/0101c105/attachment.html>


More information about the discuss mailing list