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

Conversation

stephenxs
Copy link
Collaborator

- What I did
Remove the dependency on sysfs for sfputil, mainly get_presence and port_to_eeprom_mapping

- How I did it
in sfputil.py:

  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.

- How to verify it

  1. check the output of the following commands:
    sudo sfputil show -p Ethernetxxx
    sudo sfputil show -d -p Ethernetxxx
  2. reload config and then check whether STATE_DB contains correct data for table TRANSCEIVER_DOM_SENSOR and TRANSCEIVER_INFO.

- Description for the changelog
Remove the dependency on sysfs for sfputil

Signed-off-by: Stephen Sun [email protected]

Stephen Sun added 2 commits June 4, 2019 08:28
…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.
minor adjustment: move the presence=False to the beginning of get_presence.
@lguohan lguohan merged commit bf2c9cd into sonic-net:master Jun 7, 2019
@stephenxs stephenxs deleted the remove-sfp-sysfs branch June 7, 2019 13:23
mssonicbld added a commit that referenced this pull request Dec 14, 2023
…lly (#17501)

#### Why I did it
src/sonic-swss
```
* ff524e6d - (HEAD -> master, origin/master, origin/HEAD) [dash] add a retry for an ACL rule creation if a tag is not created yet (#2972) (7 hours ago) [Yakiv Huryk]
* 620db3da - [ci] Allow partially success build artifact in PR checker pipeline. #2986 (3 days ago) [Liu Shilong]
* d357e6f1 - [copporch] Add safeguard during policer attribute update (#2977) (4 days ago) [Vivek]
* cb460394 - [fpmsyncd][WR] Relax the static schema constraint for ROUTE_TABLE (#2981) (5 days ago) [Vivek]
* a1ce21f6 - Change base directory referenced in coverage.xml (#2976) (6 days ago) [Lawrence Lee]
* 920959cf - [Dash] [UT] Add ZMQ test case for dash (#2967) (6 days ago) [Hua Liu]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants