Open twtseng-tim opened 7 months ago
- 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, return 0 if tagged joining vlan.
- 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
- 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, return 0 if tagged joining vlan.
- 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