Skip to content

DellEMC: get_change_event Platform API implementation for S6000, S6100 and Z9100#4593

Merged
lguohan merged 2 commits intosonic-net:masterfrom
ArunSaravananBalachandran:change_event
May 20, 2020
Merged

DellEMC: get_change_event Platform API implementation for S6000, S6100 and Z9100#4593
lguohan merged 2 commits intosonic-net:masterfrom
ArunSaravananBalachandran:change_event

Conversation

@ArunSaravananBalachandran
Copy link
Contributor

- Why I did it

For detecting transceiver change events through xcvrd in DellEMC S6000, S6100 and Z9100 platforms.

- How I did it

  • In S6000, rename 'get_transceiver_change_event' in chassis.py to 'get_change_event' and return appropriate values.
  • In S6100, implement 'get_change_event' through polling method (poll interval = 1 second) in chassis.py (Transceiver insertion/removal does not generate interrupts due to a CPLD bug)
  • In Z9100, implement 'get_change_event' through interrupt method using select.epoll().

- How to verify it

Perform transceiver insertion/removal and check the transceiver presence using "show interfaces transceiver command". During transceiver insertion/removal testing, no substantial CPU spike was observed when pfcwd was enabled.

UT Logs:
S6000_OIR_UT_logs.txt
S6100_OIR_UT_logs.txt
Z9100_OIR_UT_logs.txt

- Description for the changelog

DellEMC: get_change_event Platform API implementation for S6000, S6100 and Z9100

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

@ArunSaravananBalachandran
Copy link
Contributor Author

This PR needs to be picked for 201911 branch.

@lgtm-com
Copy link

lgtm-com bot commented May 14, 2020

This pull request introduces 2 alerts and fixes 1 when merging 5e9c885 into 0542afb - view on LGTM.com

new alerts:

  • 1 for Except block handles 'BaseException'
  • 1 for Unreachable code

fixed alerts:

  • 1 for Unused import

@sujinmkang
Copy link
Collaborator

@ArunSaravananBalachandran Can you please fix the LGTM alerts?

@lgtm-com
Copy link

lgtm-com bot commented May 18, 2020

This pull request fixes 3 alerts when merging a7cc834 into af95d57 - view on LGTM.com

fixed alerts:

  • 3 for Unused import

@ArunSaravananBalachandran
Copy link
Contributor Author

@ArunSaravananBalachandran Can you please fix the LGTM alerts?

@sujinmkang Resolved the LGTM alerts.

@jleveque
Copy link
Contributor

Retest mellanox please

@lguohan lguohan merged commit e976b70 into sonic-net:master May 20, 2020
abdosi pushed a commit that referenced this pull request May 28, 2020
…0 and Z9100 (#4593)

For detecting transceiver change events through xcvrd in DellEMC S6000, S6100 and Z9100 platforms.

- In S6000, rename 'get_transceiver_change_event' in chassis.py to 'get_change_event' and return appropriate values.
- In S6100, implement 'get_change_event' through polling method (poll interval = 1 second) in chassis.py (Transceiver insertion/removal does not generate interrupts due to a CPLD bug)
- In Z9100, implement 'get_change_event' through interrupt method using select.epoll().
@ArunSaravananBalachandran ArunSaravananBalachandran deleted the change_event branch May 28, 2020 03:59
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.

5 participants