You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix speed parsing when speed is NOT fetched from APPL_DB (#2138)
- What I did
In PR #2110 introduced an enhancement to support display port speed with different unit when it is RJ45 ports, however, it only covered the case that the speed was fetched from APPL_DB.
Recently there is a change to fetch the speed from STATE_DB in some cases, the same logic also needs to be applied in this case.
- How I did it
Rename appl_db_port_speed_parse to a more generic name port_speed_parse.
Call port_speed_parse when speed is fetched from STATE_DB.
In UT test, add port status entries to mocked STATE_DB to cover the logic that get port speed from STATE_DB.
- How to verify it
UT and test it on platform support RJ45 ports
Signed-off-by: Kebo Liu <[email protected]>
0 commit comments