Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


How to group flows and delete all flows by its group name?

asked 2015-02-27 12:43:41 -0700

rolecram gravatar image

Hi, I'd like to insert flows and give all the flows a group name. Then, I want to delete all the flows using that group name instead of delete one by one. Is that possible?

thank you in advance,


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-03-01 23:28:34 -0700

Vishal Thapar gravatar image

Use Flow Cookies. You can use cookie field to group similar flows and then do a bulk-delete using the cookie-id.

edit flag offensive delete publish link more


Thank you for your response. Is it possible to give a flow cookie through the REST API? regards,

rolecram ( 2015-03-02 04:21:45 -0700 )edit

Yes, you can specify cookie through rest API similar to way you give priority.

Vishal Thapar ( 2015-03-02 21:45:59 -0700 )edit

Can this be used across multiple switches? e.g. I have flow x on one node and flow y on another, both with cookie z. Can I ask the controller to delete all flows with cookie z with one request?

B.Cogan ( 2015-03-04 08:57:16 -0700 )edit

No, cookie's scope is within a switch so it will require N flow delete messages for N switches. One could write a switch-aggregator type app on ODL which could do the what you want, take single cookie for flow delete and send it to all switches, but there isn't any app like that as of today.

Vishal Thapar ( 2015-03-04 20:06:06 -0700 )edit
Login/Signup to Answer


Asked: 2015-02-27 12:43:41 -0700

Seen: 1,150 times

Last updated: Mar 01 '15