Skip to content

[Mellanox] Support get_error_status for SFP modules#68

Closed
stephenxs wants to merge 1 commit intomasterfrom
sfp-error-status
Closed

[Mellanox] Support get_error_status for SFP modules#68
stephenxs wants to merge 1 commit intomasterfrom
sfp-error-status

Conversation

@stephenxs
Copy link
Owner

@stephenxs stephenxs commented Apr 26, 2021

Why I did it

This to expose the error status of SFP modules to CLI
The platform API calls SDK API to fetch the error status
The CLI will call platform API and provide user-friendly output

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

How I did it

A new platform API is introduced:

def get_error_status(self)
    """
    Get error status of the SFP module
    Returns:
        string: represent the error code
    """

The possible error description of this API:

  • Unplugged: SFP module is unplugged
  • Initializing: SFP module is under initializing
  • OK: SFP module is plugged without error
  • Disabled: SFP module is plugged but disabled
  • Other value: SFP module is plugged with an error detected

How to verify it

Manually 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)

@stephenxs stephenxs requested a review from keboliu April 28, 2021 09:23
This to expose the error status of SFP modules to CLI
- The platform API calls SDK API to fetch the error status
  - Display the SFP module state: plugged, unplugged and plugged with error.
  - The SFP error stae is displayed only if the SFP module state is plugged with error
- The CLI will call platform API and provide user-friendly output
Redirect stderr to /dev/null in order to eliminate errors in case SFP module is not plugged

Signed-off-by: Stephen Sun <[email protected]>
@stephenxs
Copy link
Owner Author

The feature will be folded into Junchao's PR. Close this one.

@stephenxs stephenxs closed this Jun 7, 2021
@stephenxs stephenxs deleted the sfp-error-status branch June 29, 2021 05:43
stephenxs pushed a commit that referenced this pull request Oct 8, 2021
e466ac226c48cf87f83aa5564efd7155ac97a0c1 (HEAD -> master, origin/master, origin/HEAD) Reject incorrect CIDR addresses while configuring routes (#91)
07cf59d866914ef7cb6901d51f289f0bee721e44 [CI] Set up Azure pipeline (#89)
47476acdfaf668ab0cd9ae2443205a3bdc2e9ef9 Upgrade Go version to 1.14 (#90)
ee887c785c10d8b4f70db90ca50cc398327c5d73 Added flag to make go/pkg/ folder writable (removable) (#87)
6cfc8fe110c46a1ee5a8430e02a440b5a7b4006d (origin/shilongliu/azp) Default Vrf static route support (#85)
d3e8b8e4aee278fa11d7d86acabdab3fffc70d5a Add BFD config to subinterface and neighbor (#68)
8d4fd4a56b637d3b7403c321aef36b8dff58cd62 Fix WS-2018-0594 potential non-random UUIDs security issue (#78)
fad87fa20f6b15e28c90e02a131c44d236d6a751 Update API description for default vrf and ecmp routes (#82)

Signed-off-by: Abhishek Dosi <[email protected]>
stephenxs pushed a commit that referenced this pull request May 7, 2022
[master][sonic-linkmgrd] submodule updates

df51322 Longxiang Lyu   Fri May 6 10:01:46 2022 +0800   Add `ActiveActiveStateMachine` implementation (#64)
e721ceb Jing Zhang      Wed May 4 10:07:14 2022 -0700   Add doc for default route related changes  (#63)
7bb06fb Jing Zhang      Tue May 3 09:48:28 2022 -0700   Add Cli support to enable or disable default route related feature (#68)
e4b02cb Jing Zhang      Mon May 2 13:27:54 2022 -0700   Reset WaitActiveUp count before switching to active (#70)
212d960 Jing Zhang      Wed Apr 27 10:35:05 2022 -0700  lower log level to warning (#69)
48abc9e Jing Zhang      Thu Apr 14 16:50:04 2022 -0700  Add support to enable switchover time measurement (with link prober interval decreased to 10ms) feature  (#61)
c4858a6 Jing Zhang      Thu Apr 14 11:27:55 2022 -0700  Avoid proactively switching to `active` if default route is missing  (#62)

sign-off: Jing Zhang [email protected]
liat-grozovik pushed a commit that referenced this pull request Feb 17, 2026
…sonic-net#25508)

#### Why I did it
src/dhcpmon
```
* d78974f - (HEAD -> master, origin/master, origin/HEAD) [dhcp_mon] Add missing #include <algorithm> for std::replace (#68) (31 hours ago) [rustiqly]
* d4934fa - Add .github/copilot-instructions.md for AI-assisted development (#67) (31 hours ago) [rustiqly]
```
#### 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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants