Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sfpshow/sfputil] Enhance sfpshow and sfputil to behavior correctly on RJ45 ports #2111

Merged
merged 18 commits into from
Jun 24, 2022

Commits on Mar 22, 2022

  1. enhance show interface transceiver eeprom logic with RJ45 port support

    Signed-off-by: Kebo Liu <kebol@nvidia.com>
    keboliu committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    2c385fd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e57ecd0 View commit details
    Browse the repository at this point in the history
  3. fix sfputil issue on RJ45 port

    Signed-off-by: Kebo Liu <kebol@nvidia.com>
    keboliu committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    5e5e5bc View commit details
    Browse the repository at this point in the history
  4. [RJ45] change the way to judge port type and add more UT test case

    Signed-off-by: Kebo Liu <kebol@nvidia.com>
    keboliu committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    5285202 View commit details
    Browse the repository at this point in the history
  5. [sfputil] simplity the logic for RJ45 support

    Signed-off-by: Kebo Liu <kebol@nvidia.com>
    keboliu committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    a425de4 View commit details
    Browse the repository at this point in the history
  6. Support sfputil show present

    Signed-off-by: Stephen Sun <stephens@nvidia.com>
    stephenxs authored and keboliu committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    6863fdd View commit details
    Browse the repository at this point in the history
  7. Support rj45 in sfpshow

    Signed-off-by: Stephen Sun <stephens@nvidia.com>
    stephenxs authored and keboliu committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    2da251d View commit details
    Browse the repository at this point in the history
  8. Add test case for sfputil with RJ45 supported

    Signed-off-by: Stephen Sun <stephens@nvidia.com>
    stephenxs authored and keboliu committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    b622d5b View commit details
    Browse the repository at this point in the history
  9. Add mock data for RJ45 ports into STATE_DB

    Signed-off-by: Stephen Sun <stephens@nvidia.com>
    stephenxs authored and keboliu committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    586af55 View commit details
    Browse the repository at this point in the history
  10. Add test for sfputil show for RJ45 ports

    Signed-off-by: Stephen Sun <stephens@nvidia.com>
    stephenxs authored and keboliu committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    da447ce View commit details
    Browse the repository at this point in the history
  11. remove debug code in sfputil test case

    Signed-off-by: Kebo Liu <kebol@nvidia.com>
    keboliu committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    cc540ed View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2022

  1. remove unnecessary argument for format()

    Signed-off-by: Kebo Liu <kebol@nvidia.com>
    keboliu committed Apr 1, 2022
    Configuration menu
    Copy the full SHA
    d93bf37 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2022

  1. Revert the logic to fetch presence status from error status for RJ45 …

    …port (#17)
    
    * Revert the logic to fetch presence status from error status
    
    Signed-off-by: Stephen Sun <stephens@nvidia.com>
    
    * Unit test
    
    Signed-off-by: Stephen Sun <stephens@nvidia.com>
    
    * Fix error
    
    Signed-off-by: Stephen Sun <stephens@nvidia.com>
    stephenxs authored May 27, 2022
    Configuration menu
    Copy the full SHA
    79c3218 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f21fc3e View commit details
    Browse the repository at this point in the history
  3. Add test cases to cover lpmode and error status

    Signed-off-by: Stephen Sun <stephens@nvidia.com>
    stephenxs committed May 27, 2022
    Configuration menu
    Copy the full SHA
    8e11f59 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2022

  1. add comments to describe the usage of functions to judge the port type

    Signed-off-by: Kebo Liu <kebol@nvidia.com>
    keboliu committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    09a891a View commit details
    Browse the repository at this point in the history
  2. add more testcase for sfputil

    Signed-off-by: Kebo Liu <kebol@nvidia.com>
    keboliu committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    26bdd9c View commit details
    Browse the repository at this point in the history
  3. fix typo in testcase name

    Signed-off-by: Kebo Liu <kebol@nvidia.com>
    keboliu committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    942cb38 View commit details
    Browse the repository at this point in the history