Skip to content

Conversation

@keboliu
Copy link
Collaborator

@keboliu keboliu commented Apr 21, 2022

Signed-off-by: Kebo Liu kebol@nvidia.com

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

  1. rename appl_db_port_speed_parse to a more generic name port_speed_parse.
  2. call port_speed_parse when speed is fetched from STATE_DB.
  3. In UT test, add port status entires 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

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

Signed-off-by: Kebo Liu <kebol@nvidia.com>
stephenxs
stephenxs previously approved these changes Apr 21, 2022
@keboliu keboliu dismissed stale reviews from stephenxs and Junchao-Mellanox via 7fcc58e April 24, 2022 10:48
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.

4 participants