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

[xcvrd] Add to support MEDIA_LANE_SPEED_KEY in media_settings.json #528

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jul 26, 2024

  1. [xcvrd] Add to support MEDIA_LANE_SPEED_KEY in media_settings.json

    * Add to support MEDIA_LANE_SPEED_KEY in media_settings.json
      The MEDIA_LANE_SPEED_KEY consists of transceiver's media type and lane_speed information.
      To define MEDIA_LANE_SPEED_KEY as:
    	"50000,CR", when the lane_speed is 50G in each lane and media type is Copper.
    	"50000" , when the lane_speed is 50G in each lane, and its media type is Fiber.
    
    * Add "def get_media_lane_speed_key"
     Use the this API to to query the MEDIA_LANE_SPEED_KEY for the transceiver.
    
    * Modify "def get_media_settings_key" to add new key for MEDIA_LANE_SPEED_KEY.
    
    * Modify "def get_media_settings_value" to parse MEDIA_LANE_SPEED_KEY.
    
    * Add unit test with "media_settings_with_media_lane_speed_key_format.json" as sample "media_settings.json" file.
    
    * Fix unit test error due to adding MEDIA_LANE_SPEED_KEY.
    
    * Add unit test for "def get_media_lane_speed_key".
    
    * Add unit test for getting media settings value with MEDIA_LANE_SPEED_KEY.
    Jc Yu committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    7b06830 View commit details
    Browse the repository at this point in the history