Added range_addition(). Its presence is not final but is used in the meantime.
Added exceptions KytosInvalidRanges, KytosTagsAreNotAvailable and KytosTagsNotInTagRanges
Added support for input list[list[int]] to use_tags() and make_tags_available()
These methods also have changed their return. For use_tags() there is no longer a return value, instead, it raises KytosTagsAreNotAvailable for any errors. make_tags_available() returns any conflicting values, this does not stop the addition process. It can also raise KytosTagsNotInTagRanges.
Created the file tag_ranges.py that contains every Interface range-related method that was static.
Created TAGRange class for tags that have a list of ranges of tags.
Moved get_tag_ranges() and map_singular_values() to tag_ranges.py so it can be used for other, currently mef_eline and topology are planned to use it.
Closes #427
Summary
Added
range_addition()
. Its presence is not final but is used in the meantime.Added exceptions
KytosInvalidRanges
,KytosTagsAreNotAvailable
andKytosTagsNotInTagRanges
Added support for input
list[list[int]]
touse_tags()
andmake_tags_available()
These methods also have changed their return. For
use_tags()
there is no longer a return value, instead, it raisesKytosTagsAreNotAvailable
for any errors.make_tags_available()
returns any conflicting values, this does not stop the addition process. It can also raiseKytosTagsNotInTagRanges
.Created the file
tag_ranges.py
that contains every Interface range-related method that was static.Created
TAGRange
class for tags that have a list of ranges of tags.Moved
get_tag_ranges()
andmap_singular_values()
totag_ranges.py
so it can be used for other, currentlymef_eline
andtopology
are planned to use it.Local Tests
vlan_range
developmentEnd-To-End Tests