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
Improve the way to check port type of RJ45 port (#2249)
* Update the presence state of RJ45 port
Present/Not present => Link Up/Link Down
Use the new platform API to test whether the port is an RJ45 port
Signed-off-by: Stephen Sun <[email protected]>
* Use new platform API to check whether a port is RJ45 and represent present status accordingly
Signed-off-by: Stephen Sun <[email protected]>
* Adjust sfputil and testcases
Signed-off-by: Stephen Sun <[email protected]>
* Adjust sfpshow
Signed-off-by: Stephen Sun <[email protected]>
* Exact is_rj45_port to a common module shared between sfpshow and intfutil
Signed-off-by: Stephen Sun <[email protected]>
* Fall back to old way for checking RJ45 port
Signed-off-by: Stephen Sun <[email protected]>
* Move RJ45 part to platform_sfputil_helper
Signed-off-by: Stephen Sun <[email protected]>
* Remove fallback mechanism in is_rj45_port
Signed-off-by: Stephen Sun <[email protected]>
* Remove get_child_ports which is not used
Signed-off-by: Stephen Sun <[email protected]>
* Temporarily commit
Signed-off-by: Stephen Sun <[email protected]>
* Update unit test
Signed-off-by: stephens <[email protected]>
* Adjust unit test
Signed-off-by: Stephen Sun <[email protected]>
* Commit missed files
Signed-off-by: Stephen Sun <[email protected]>
* Add missing files
Signed-off-by: stephens <[email protected]>
* Fix typo
Signed-off-by: Stephen Sun <[email protected]>
* Remove code that was committed by mistake.
Signed-off-by: Stephen Sun <[email protected]>
* Fix an issue: the ports should be in nature order in sfputil show presence
Signed-off-by: Stephen Sun <[email protected]>
* Fix present state for RJ45: Link Up/Down => Port Up/Down
Signed-off-by: Stephen Sun <[email protected]>
* LGTM warning supression
Signed-off-by: Stephen Sun <[email protected]>
* LGTM warning supression
Signed-off-by: Stephen Sun <[email protected]>
* Move present state part into another PR
Signed-off-by: Stephen Sun <[email protected]>
* Fix review comments
Signed-off-by: Stephen Sun <[email protected]>
Co-authored-by: stephens <[email protected]>
0 commit comments