Added match_id attribute on Flow as a unique match identifier for efficient overlapping matches updates, minimizing extra DB lookups that would be needed otherwise.
Match OF10 as_dict to only included explicit set values.
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
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 .
Description of the change
Release notes
match_id
attribute onFlow
as a unique match identifier for efficient overlapping matches updates, minimizing extra DB lookups that would be needed otherwise.as_dict
to only included explicit set values.This picture illustrates a
POST /api/kytos/flow_manager/v2/flows/
onflow_manager
(that's in progress on https://github.com/kytos-ng/flow_manager/issues/75), by leveraging thismatch_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 applicableI 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 .