Hi, Carlos

You can use OFPFlowStatsRequest to get flows from an OpenFlow switch.
http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPFlowStatsRequest

As an attribute, you can specify the cookie value,
so you can get flows only with a specific cookie value.

FYI, app/ofctl_rest.py provides GetAllFlowsStats API:
http://ryu.readthedocs.io/en/latest/app/ofctl_rest.html#get-all-flows-stats
You can use it to get flows with a specific cookie value via REST API.


Thanks,
Fujimoto


On 2017年08月31日 01:15, Carlos Ferreira wrote:
Hello

I wanted to ask the community, if anyone knows a way to use ryu, to
dump all flows previously added to an OpenFlow Switch, or at least, to
check if there's an already added flow with a specific cookieid.

My objective is make a ryu controller check if an OF Switch already
has a flow with a specific cookieid.

Thank you all.


Carlos Miguel Ferreira

------------------------------------------------------------------------------
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


------------------------------------------------------------------------------
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

Reply via email to