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

Support reporting interface pvid #316

Closed
wants to merge 3 commits into from

Conversation

twtseng-tim
Copy link

- What I did
Let SNMP can report the interface pvid.

- How I did it
Get vlan configuration from config DB, returning the vid if the port is untagged joining the vlan, otherwise, nometter port is tagged joining vlan or not joining to vlan, returning 0.

- How to verify it
Add unit test test_dot1q_port to verify this function

tests/test_dot1q_port.py::TestSonicMIB::test_getnextpdu PASSED [ 8%]
tests/test_dot1q_port.py::TestSonicMIB::test_getnextpdu_empty PASSED [ 9%]
tests/test_dot1q_port.py::TestSonicMIB::test_getnextpdu_exactmatch PASSED [ 9%]
tests/test_dot1q_port.py::TestSonicMIB::test_getnextpdu_lag PASSED [ 9%]
tests/test_dot1q_port.py::TestSonicMIB::test_getpdu PASSED [ 9%]
tests/test_dot1q_port.py::TestSonicMIB::test_getpdu_noinstance PASSED [ 10%]

- Description for the changelog
Support reporting interface pvid through SNMP

@twtseng-tim twtseng-tim closed this Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant