kytos-ng / flow_manager

Kytos NApp that manages OpenFlow 1.3 entries
https://kytos-ng.github.io/api/flow_manager.html
MIT License
0 stars 7 forks source link

feat: introduce a new filter for a list of cookies to improve query #165

Closed viniarck closed 1 year ago

viniarck commented 1 year ago

The current filters with cookie_range [low, high] is handy when a client is searching for either a single cookie or a contiguous range of values.

telemetry_int would need to search for n non-contiguous cookies, so it'd be great to extend cookie_range to allow an even number of pairs, just so the non contiguous ranges could get grouped with an $or to perform the search with a single query minimizing IO and simplifying for clients (it wouldn't be a bottle neck, but it'd be wasteful to do this in multiple queries). Maybe it could also get introduced as a filter body since the number of args can get large just so the url doesn't get that big and cumbersome to build.