Re: [Ryu-devel] [RYU] Delete flow entry basing on priority
Brought to you by:
nz_gizmoguy
From: IWAMOTO T. <iw...@va...> - 2016-08-31 05:53:59
|
At Tue, 30 Aug 2016 19:40:20 +0700, Quân Nguyễn Thanh wrote: > > [1 <text/plain; UTF-8 (quoted-printable)>] > Hi, > > It doesn't work. When I use with OFPFC_DELETE option, it remove all flow > entry. > I also try remove by ovs-ofctl command on openvswitch. > > # ovs-ofctl del-flows s3 "priority=50" -O OpenFlow13 > ovs-ofctl: unknown keyword priority > > It means that openvswitch doesn't support, right? The short answer would be you cannot do what you want with a single openflow command. I checked the OpenFlow spec. The priority field is used by OFPFC_DELETE_STRICT messages but not by OFPFC_DELETE messages. And OFPFC_DELETE_STRICT messages don't do wildcard matches. You'll need to dump the entire flow table (OFPFlowStatsRequest) and filter by priority in your python code. > On Tue, Aug 30, 2016 at 10:35 AM, IWAMOTO Toshihiro <iw...@va...> > wrote: > > > At Tue, 30 Aug 2016 11:49:27 +0900, > > Iwase Yusuke wrote: > > > > > > Hi, > > > > > > Please CC ryu...@li... and keep this mailing this. > > > > > > How about specifying out_port=ofproto.OFPP_ANY and > > out_group=ofproto.OFPG_ANY > > > to OFPFlowMod message? > > > e.g.) > > > mod = parser.OFPFlowMod(datapath=datapath, cookie=0, > > > priority=priority, > > > out_port=ofproto.OFPP_ANY, > > > out_group=ofproto.OFPG_ANY, > > > command=ofproto.OFPFC_DELETE_STRICT) > > > > > > Thunks, > > > Iwase > > > > Use OFPFC_DELETE instead of OFPFC_DELETE_STRICT? > > > > > > > > On 2016年08月30日 09:44, Quân Nguyễn Thanh wrote: > > > > Hi Iwase Yusuke, > > > > > > > > Sorry, if I borther you. > > > > I'm using OF1.3 with RYU, I would like to remove flow entry basing on > > the > > > > priority at all. As below function, but it doesn't work, could you > > please > > > > point out my mistake? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > *def del_flow(self, datapath, priority): ofproto = > > > > datapath.ofproto parser = datapath.ofproto_parser #match > > = > > > > {} mod = parser.OFPFlowMod( datapath=datapath, > > cookie=0, > > > > priority=priority, command=ofproto.OFPFC_DELETE_STRICT) > > > > datapath.send_msg(mod)* > > > > > > > > Thank you for your help. > > > > > > > > > > ------------------------------------------------------------ > > ------------------ > > > _______________________________________________ > > > Ryu-devel mailing list > > > Ryu...@li... > > > https://lists.sourceforge.net/lists/listinfo/ryu-devel > > > > > > -- > Best regards, > Quan Nguyen > [2 <text/html; UTF-8 (quoted-printable)>] |