kytos-ng / of_core

Kytos Main OpenFlow Network Application (NApp)
MIT License
0 stars 5 forks source link

[Feature] Added `Flow` `match_id` attribute for efficient overlapping matches updates #60

Closed viniarck closed 2 years ago

viniarck commented 2 years ago

Description of the change

Release notes

This picture illustrates a POST /api/kytos/flow_manager/v2/flows/ on flow_manager (that's in progress on https://github.com/kytos-ng/flow_manager/issues/75), by leveraging this match_id there's a single update, minimizing DB round trips when inserting or updating a flow, minimizing locks and delegating as much to Mongo whenever applicable

fmanager_mongo

I wasn't going to support OF10 either on this attribute, since we have mapped the issues to deprecate it, but since we haven't yet and the fix was simple I committed it. We can drop OF1.0 on issue #50 .

viniarck commented 2 years ago

Thanks for reviewing @ajoaoff @italovalcy