Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False negative on Interface. all_tags_available #506

Closed
italovalcy opened this issue Oct 21, 2024 · 1 comment · Fixed by #510
Closed

False negative on Interface. all_tags_available #506

italovalcy opened this issue Oct 21, 2024 · 1 comment · Fixed by #510
Assignees
Labels
backport_20232 backport_20241 bug Something isn't working priority_medium Medium priority

Comments

@italovalcy
Copy link

Hi,

kytos $> sw.interfaces[4].all_tags_available()
Out[10]: False

kytos $> sw.interfaces[4].available_tags
Out[11]: {'vlan': [[1, 4095]]}

kytos $> sw.interfaces[4].tag_ranges
Out[12]: {'vlan': [[1, 4095]]}

kytos $> sw.interfaces[4].special_available_tags
Out[13]: {'vlan': ['any', 'untagged']}

kytos $> sw.interfaces[4].special_tags
Out[14]: {'vlan': ['untagged', 'any']}

As you can see, only the order of untagged/any are wrong.

@viniarck viniarck added the bug Something isn't working label Oct 21, 2024
@viniarck
Copy link
Member

viniarck commented Oct 21, 2024

Good catch. With a sort we can fix the all_tags_available(), but it's an opportunity to also reassess if we always should try to already keep it sorted when writing to the list, let's see if it also something just related to the DB script upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport_20232 backport_20241 bug Something isn't working priority_medium Medium priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants