Skip to content

[PDDF] Add get_sfp() to chassis to handle port idx#7980

Merged
lguohan merged 2 commits intosonic-net:masterfrom
jostar-yang:pddf_20210625_add_get_sfp
Jul 25, 2021
Merged

[PDDF] Add get_sfp() to chassis to handle port idx#7980
lguohan merged 2 commits intosonic-net:masterfrom
jostar-yang:pddf_20210625_add_get_sfp

Conversation

@jostar-yang
Copy link
Copy Markdown
Contributor

Signed-off-by: Jostar Yang jostar_yang@accton.com.tw

Why I did it

Add get_sfp() to chassis to handle port_config.ini port index start from 1.
Configure use port start from 1, but code sfp_list[] is start from 0. It will cause port range error.

How I did it

Implement get_sfp() to chassis.py

How to verify it

Test script to check port range is ok from 1 to 58 on as7326 and other DUT.

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)

Signed-off-by: Jostar Yang <jostar_yang@accton.com.tw>
@jostar-yang jostar-yang requested a review from lguohan as a code owner June 25, 2021 09:35
FuzailBrcm
FuzailBrcm previously approved these changes Jun 25, 2021
Copy link
Copy Markdown
Contributor

@FuzailBrcm FuzailBrcm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look good to me

@jostar-yang
Copy link
Copy Markdown
Contributor Author

/azpw run

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@lguohan lguohan merged commit 5e435e0 into sonic-net:master Jul 25, 2021
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
…7980)

* Modify index start from 1 in in get_change_event()

Co-authored-by: Jostar Yang <jostar_yang@accton.com.tw>
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.

4 participants