Replies: 5 comments 13 replies
-
@Alopalao thanks for consolidating this feature discussion. Overall, +1 from me. New minor details that I just realized though: 1 - Regarding the new API endpoints:
2 - Also, let's include and plan to cover the feature with a few e2e test cases, OK? |
Beta Was this translation helpful? Give feedback.
-
About |
Beta Was this translation helpful? Give feedback.
-
Hi Aldo and Vinicius! Excellent to see this summary of the discussion around vlan pool feature. I will take a broad look later, but I just want to comment on something:
This point here I would like to request further discussion. Having the list of vlans in the same way we have for python range can lead to for confusion for network operators.. for developers, it is easy and you can just pass through the value to python range function. For network operators, I'm sure it will be a point of doubts. What would be the impact of having this ranges as |
Beta Was this translation helpful? Give feedback.
-
On another note, I was expecting *m is the length of |
Beta Was this translation helpful? Give feedback.
-
I'll go ahead and close this discussion, the implementation is in progress. Excelent proposal, Aldo. Congrats. |
Beta Was this translation helpful? Give feedback.
-
Here are the summary of the conclusion of the previous discussion of VLAN pool: (UPDATED Aug 17, 2023)
kytos/mef_eline.link_available_tags
tokytos/core
to be an addition of Interface class, issue.list[int]
tolist[list[int]]
to represent a list of ranges[[100,201], [600, 801]]
. To make maintainability consistent and easier, these list of ranges should followed some rules:2.1. Not unnecessary partitions.
[[10, 101], [101, 201]]
will not be allowed and should be avoided, instead[[10, 201]]
is the correct form.2.2. It should be ordered
2.3. Ranges will follow
[inclusive, inclusive]
format.2.4. Singular integers should be converted to range format for comparabilities.
[[200, 300], 405]
should be changed to[[200, 300], [405, 405]]
. User input with singular integers are accepted but not stored.tag_ranges
replacingvlan_pool
which is going to be the range of restricted VLANs. One value to restrict both NNI and UNI.tag_ranges
is going to be an attribute ofInterface
classinterface.available_tags
todict[str, list[list[int]]]
. This adds compatibility to future applications of multiple VLAN types even though for now we only support type1
. Example{'1': [[10, 20], [40, 40]], '2': [[1, 4097]], '3': [[1, 4097]]}
interface_details
documents fromlist[int]
tolist[list[int]]
.mef_eline
was already created. An issue forof_lldp
is needed as well.tag_ranges
, issue. POST for additions/replacements, DELETE for deletions and GET to get existenttag_ranges
. Body example:{"tag_range": [[100, 201], [400, 2001]]}, "tag_type": 1}
. Fortag_type
we are only accepting 1 and it is not required.ccing @italovalcy @jab1982
Beta Was this translation helpful? Give feedback.
All reactions