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

[Y-Cable][Broadcom] Broadcom implementation of YCable class which inherits from YCableBase required for Y-Cable API's in sonic-platform-daemons #208

Merged
merged 9 commits into from
Aug 23, 2021

Conversation

vdahiya12
Copy link
Contributor

@vdahiya12 vdahiya12 commented Jul 19, 2021

This PR adds support for YCable class required for platform-daemons to use the YCable API's for Broadcom.

Description

Basically a vendor specific implementation of abstract YCableBase class .
detailed design discussion can be found https://github.com/Azure/SONiC/pull/757/files

Motivation and Context

Required for transitioning to vendor agnostic API's to be called by xcvrd, so that all types of cables can be called.

How Has This Been Tested?

Ran the changes on Arista7050cx3 switch, making changes inside the container.

Additional Information (Optional)

Signed-off-by: vaibhav-dahiya vdahiya@microsoft.com

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
@vdahiya12 vdahiya12 requested review from prgeor and lguohan July 19, 2021 23:42
@lgtm-com
Copy link

lgtm-com bot commented Jul 19, 2021

This pull request introduces 42 alerts when merging b56a60b into e168f1d - view on LGTM.com

new alerts:

  • 28 for Variable defined multiple times
  • 7 for Unused local variable
  • 6 for Unused import
  • 1 for Unnecessary pass

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
@lgtm-com
Copy link

lgtm-com bot commented Jul 22, 2021

This pull request introduces 1 alert when merging dd6ff1b into e168f1d - view on LGTM.com

new alerts:

  • 1 for Unused import

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
lguohan
lguohan previously approved these changes Jul 26, 2021
@vdahiya12 vdahiya12 marked this pull request as draft July 27, 2021 22:22
@vdahiya12
Copy link
Contributor Author

converting it as a draft, since the implementations has few work items/fixes

prgeor
prgeor previously approved these changes Jul 29, 2021
@vdahiya12 vdahiya12 dismissed stale reviews from prgeor and lguohan via 7ade442 August 11, 2021 22:01
Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
@lgtm-com
Copy link

lgtm-com bot commented Aug 11, 2021

This pull request introduces 42 alerts when merging 42391d8 into cd3cca7 - view on LGTM.com

new alerts:

  • 21 for Variable defined multiple times
  • 9 for Redundant comparison
  • 7 for Unused local variable
  • 3 for Unreachable code
  • 1 for Unused import
  • 1 for Missing call to `__init__` during object initialization

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
… into braodcom_changes

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
@lgtm-com
Copy link

lgtm-com bot commented Aug 14, 2021

This pull request introduces 42 alerts when merging 42391d8 into ce51894 - view on LGTM.com

new alerts:

  • 21 for Variable defined multiple times
  • 9 for Redundant comparison
  • 7 for Unused local variable
  • 3 for Unreachable code
  • 1 for Unused import
  • 1 for Missing call to `__init__` during object initialization

@vdahiya12 vdahiya12 marked this pull request as ready for review August 16, 2021 02:17
@vdahiya12 vdahiya12 merged commit c17c370 into sonic-net:master Aug 23, 2021
@vdahiya12 vdahiya12 deleted the braodcom_changes branch August 23, 2021 21:06
qiluo-msft pushed a commit that referenced this pull request Aug 25, 2021
…erits from YCableBase required for Y-Cable API's in sonic-platform-daemons (#208)

This PR adds support for YCable class required for platform-daemons to use the YCable API's for Broadcom.

Description
Basically a vendor specific implementation of abstract YCableBase class .
detailed design discussion can be found https://github.com/Azure/SONiC/pull/757/files

Motivation and Context
Required for transitioning to vendor agnostic API's to be called by xcvrd, so that all types of cables can be called.

How Has This Been Tested?
Ran the changes on Arista7050cx3 switch, making changes inside the container.


Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-platform-common that referenced this pull request Oct 25, 2024
…to the State-DB (sonic-net#208)

fix for logging the xcvrd metrics before writing the state back to the
STATE DB

Description
This PR fixes the logging for mux_metrics for writing anything to the state DB for a state transition. Basically previously xcvrd would first post the query result to the DB and only then update its own metric for state transition, but now we do the reverse.

Motivation and Context
Second change was motivated by the sequence of events which happen inside state transition for mux-metrics table. Previously orchagent reports finishing the transition before xcvrd which is not the case. Ideally xcvrd does the transition first followed by orchagent followed by linkmgr

How Has This Been Tested?
Ran the change on Arista7050cx3 testbed.

Additional Information (Optional)


Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
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