Yes Vishal! This was the point I was coming to, just wanted to know whether there are already available solutions. Let us see if there are any other suggestions or thoughts on the same.
Thanks, Faseela From: Vishal Thapar Sent: Saturday, December 16, 2017 9:38 PM To: Faseela K <[email protected]>; Anil Vishnoi <[email protected]> Cc: [email protected] Subject: RE: [openflowplugin-dev] How to do cookie based flow deletion Hi Faseela, Isn’t this the sort of use case Genius supposed to enable? Way current model for OF flows is, key is flow-id. This makes for easy deletion of individual flows in most cases, without having to provide exact match, which switch requires. Even if OFPlugin were to enable bulk delete of flows using cookies, applications will still have to cleanup flows from DataStore. So, why not solve problem in MdsalUtils in Genius, at least for applications that do already use Genius? I had come up with a design of sorts for this sometime back as a potential Internship mini-project as part of my wishlist for Genius improvements. Will dig and see if I can find it. Regards, Vishal. From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Faseela K Sent: 16 December 2017 21:18 To: Anil Vishnoi <[email protected]<mailto:[email protected]>> Cc: [email protected]<mailto:[email protected]> Subject: Re: [openflowplugin-dev] How to do cookie based flow deletion Yes Anil! There is a limitation due to the fact that we are using the datastore, and we cannot bypass the datastore since we need other features that we get by having data written to the datastore. Since openflow spec allows deletion based on cookie, is there a way this can be solved in a generic manner, so that all apps can benefit out of it? Each app maintaining cookie to flow-id list within themselves and doing a delete based on that, looks like an overhead. Thanks, Faseela From: Anil Vishnoi [mailto:[email protected]] Sent: Saturday, December 16, 2017 1:15 PM To: Faseela K <[email protected]<mailto:[email protected]>> Cc: [email protected]<mailto:[email protected]> Subject: Re: [openflowplugin-dev] How to do cookie based flow deletion I believe data store don't allow matching based delete, you can probably do bulk delete by deleting the entire node, but i believe that is not what you are looking for. Openflowplugin depends on how data is modified in the data store, it just acts to the data modification notification that it receives from data store. So as far as i know, this is a limitation from data store side. As an alternative you can use deleteFlow rpc that plugin expose, but again in that case cleaning the data store is users responsibility, because if switch will reconnect, all the flows will end up in the switch because they are still present in the config data store. It might not be that useful in your case, but i think that depends on the usecase. On Fri, Dec 15, 2017 at 9:24 PM, Faseela K <[email protected]<mailto:[email protected]>> wrote: Hello, We in genius use opendaylight-inventory-nodes config DS, as the method to push flows to the switch. But there are several delete use-cases, where a deletion based on a cookie which will be far easier for us. Is there a way to do this, because we want to delete all entries in the config DS which matches for a particular flow cookie? Thanks, Faseela _______________________________________________ openflowplugin-dev mailing list [email protected]<mailto:[email protected]> https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev -- Thanks Anil
_______________________________________________ openflowplugin-dev mailing list [email protected] https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev
