Hi Sakib,

You can get all the flows by using OFPFlowStatsRequest and OFPFlowStatsReply 
message.
 
http://ryu.readthedocs.org/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPFlowStatsRequest
 
http://ryu.readthedocs.org/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPFlowStatsReply

e.g.) req = ofp_parser.OFPFlowStatsRequest(datapath, 0,
                                           ofp.OFPTT_ALL,
                                           ofp.OFPP_ANY, ofp.OFPG_ANY)


And, to delete all flows and a single flow, please refer to the OFPFlowMod 
message.
 
http://ryu.readthedocs.org/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPFlowMod

FYI, to delete all flows, the match value of OFPFlowMod message should be None 
(or {}).

Thanks,
Iwase

On 2015年04月13日 05:33, MD.Badruzzaman Shakib wrote:
> Hi,
> 
> I want to get all the flows from a switch in my application(not using Curl). 
> I already have flows in my switches for destination ip match. After 
> extracting all the flows I want to find the flows for certain destination ip 
> and delete it. Can anyone please give me an idea how can I do it? it will be 
> really helpful if you can tell me how to delete all flows and also how to 
> delete a single flow from a switch.
> 
> Thanking you
> Sakib
> 
> 
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> 
> 
> 
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to