Closed cmagnobarbosa closed 3 years ago
Suggestion: use a more simple syntax for unique cookie:
CONSISTENCY_COOKIE_EXCEPTION_RANGE = [0x2b00000000000011]
And allow ranges with a more specific syntax:
CONSISTENCY_COOKIE_EXCEPTION_RANGE = [0x2b00000000000011-0x2b000000000000ff]
Suggestion: use a more simple syntax for unique cookie:
CONSISTENCY_COOKIE_EXCEPTION_RANGE = [0x2b00000000000011]
And allow ranges with a more specific syntax:
CONSISTENCY_COOKIE_EXCEPTION_RANGE = [0x2b00000000000011-0x2b000000000000ff]
To try to make this more simple the suggestion made by @josemauro was implemented. Using a tuple to define an interval.
:octocat: Are you working on some issue? Identify the issue!
Fix https://github.com/kytos/kytos/issues/1221 Related https://github.com/kytos/kytos/issues/1120
:bookmark_tabs: Description of the Change
Add support for consistency checking to ignore flows by
cookie
range andtable_id
range. This feature is interesting to avoid accidental removal ofadministrative flows
installed by external tools.How to use:
The user can define the interval that is ignored in the
setting.py
file.Format:
Using
cookie
range:The flows that if the
flow.cookie
field are in this range are ignored by the consistency check.Filtering for a unique cookie:
Filtering by range and single value:
Using
table_id
range:The flows that if the
flow.table_id
field are in this range are ignored by the consistency check.Need to know
By default, all flows are checked by the consistency mechanism.
For the exception interval mechanism to work it is necessary to define an initial and final value in the tuple. If the final value is not defined, only the first value will be excluded.
This PR can be changed in the review process.
:computer: Verification Process
:page_facing_up: Release Notes