On Wed, 11 Apr 2018 23:41:18 +0900, nadia mouawad wrote: > > Good morning, > I have a question concerning deleting flows. My code is the following: > def del_flow(self, datapath, match): > ofproto = datapath.ofproto > parser = datapath.ofproto_parser > #actions1 = [parser.OFPActionOutput(ofproto.OFPP_CONTROLLER, > ofproto.OFPCML_NO_BUFFER)] > #if actions!=actions1: > mod = parser.OFPFlowMod(datapath=datapath,match=match, > cookie=0,command=ofproto.OFPFC_DELETE,out_port=ofproto.OFPP_ANY, > out_group=ofproto.OFPG_ANY, idle_timeout=0, > hard_timeout=0,priority=2,flags=ofproto.OFPFF_SEND_FLOW_REM)
You are using the non-strict delete command. The priority field (and timeout fields too, IIRC) will be ignored. > datapath.send_msg(mod) > # get buffer from the send queue > #buf = datapath.send_q.get() > # send buffer > #datapath.socket.sendall(buf) > print("delete flow %s",datapath.id ,mod) > """ > > > However, when I try to call del_flow, flows are not deleted. Can you help > me fix this problem?? > Do you get any errors? I guess the match field isn't matching against your flows. -- IWAMOTO Toshihiro ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel