Skip to content

Fix speed parsing when speed if not fetched from APPL_DB#14

Closed
keboliu wants to merge 1 commit intomasterfrom
oper_speed_fix
Closed

Fix speed parsing when speed if not fetched from APPL_DB#14
keboliu wants to merge 1 commit intomasterfrom
oper_speed_fix

Conversation

@keboliu
Copy link
Copy Markdown
Owner

@keboliu keboliu commented Apr 20, 2022

Signed-off-by: Kebo Liu [email protected]

What I did

In PR sonic-net#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

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)

@keboliu keboliu requested a review from stephenxs April 20, 2022 11:24
@keboliu keboliu closed this Apr 21, 2022
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.

2 participants