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

[Mellanox]Remove the dependency on sysfs for sfputil #2967

Merged
merged 2 commits into from
Jun 7, 2019
Merged

[Mellanox]Remove the dependency on sysfs for sfputil #2967

merged 2 commits into from
Jun 7, 2019

Commits on Jun 4, 2019

  1. [sfputil]Remove the dependency on sysfs for sfputil, mainly get_prese…

    …nce and port_to_eeprom_mapping
    
    Remove the dependency on sysfs, including:
    1. rewrite get_presence by using ethtool;
    2. remove interface port_to_eeprom_mapping which is no longer referenced;
    3. remove code that references port_to_eeprom_mapping and _port_to_eeprom_mapping;
    4. remove private member qsfp_sysfs_path which is no longer referenced.
    Stephen Sun committed Jun 4, 2019
    Configuration menu
    Copy the full SHA
    4828d49 View commit details
    Browse the repository at this point in the history
  2. [sfputil.py]

    minor adjustment: move the presence=False to the beginning of get_presence.
    Stephen Sun committed Jun 4, 2019
    Configuration menu
    Copy the full SHA
    e48af8c View commit details
    Browse the repository at this point in the history