Skip to content

[Mellanox] Fixes issue: CLI sfputil does not work based on sonic platform API#7018

Merged
jleveque merged 4 commits intosonic-net:masterfrom
Junchao-Mellanox:fix-sfputil
Mar 12, 2021
Merged

[Mellanox] Fixes issue: CLI sfputil does not work based on sonic platform API#7018
jleveque merged 4 commits intosonic-net:masterfrom
Junchao-Mellanox:fix-sfputil

Conversation

@Junchao-Mellanox
Copy link
Collaborator

Why I did it

Recently, CLI sfputil replace the old sonic platform utils with sonic platform API. However, sonic platform API does not suport SFP low power mode and reset related operation. The PR is to fix it.

The change to replace platform utils with sonic platform API was reverted on 202012, once this PR is merged, we can cherry-pick these two PRs to 202012 together.

How I did it

In low power mode and reset related operation, use "docker exec" if the command is running on host side.

How to verify it

Manual test

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

@lgtm-com
Copy link

lgtm-com bot commented Mar 11, 2021

This pull request introduces 1 alert and fixes 1 when merging b915470 into 070b020 - view on LGTM.com

new alerts:

  • 1 for Unused import

fixed alerts:

  • 1 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented Mar 11, 2021

This pull request fixes 1 alert when merging 2b70875 into 070b020 - view on LGTM.com

fixed alerts:

  • 1 for Unused import

@jleveque jleveque merged commit 7caa70d into sonic-net:master Mar 12, 2021
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-buildimage that referenced this pull request May 23, 2021
…form API (sonic-net#7018)

#### Why I did it

Recently, CLI sfputil replace the old sonic platform utils with sonic platform API. However, sonic platform API does not support SFP low power mode and reset related operation. The PR is to fix it.

The change to replace platform utils with sonic platform API was reverted on 202012, once this PR is merged, we can cherry-pick these two PRs to 202012 together.

#### How I did it

In low power mode and reset related operation, use "docker exec" if the command is running on host side.
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
…form API (sonic-net#7018)

#### Why I did it

Recently, CLI sfputil replace the old sonic platform utils with sonic platform API. However, sonic platform API does not support SFP low power mode and reset related operation. The PR is to fix it.

The change to replace platform utils with sonic platform API was reverted on 202012, once this PR is merged, we can cherry-pick these two PRs to 202012 together.

#### How I did it

In low power mode and reset related operation, use "docker exec" if the command is running on host side.
@Junchao-Mellanox Junchao-Mellanox deleted the fix-sfputil branch June 12, 2023 04:38
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.

2 participants