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

Support both str and int type for slot_id received in pmon API #5518

Merged
merged 1 commit into from
May 18, 2022

Conversation

sanmalho-git
Copy link
Contributor

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012

Approach

What is the motivation for this PR?

Based on PR sonic-net/SONiC#945, we should return the sticker/label name on the chassis for the physical slot id in the get_supervisor_slot PMON API and 'show chassis module status' command.

For Nokia supervisor card, the sticker label is 'A'.

How did you do it?

Allow for string as possible return value as well of get_supervisor_slot chassis PMON API.

How did you verify/test it?

Ran test with changes above against Nokia supervisor card

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

Based on PR sonic-net/SONiC#945, we should return
the sticker/label name on the chassis for the physical slot id
in the get_supervisor_slot PMON API and 'show chassis module status' command.

For Nokia linecards, the sticker label for supervisor is 'A'.
Thus we need to allow for string as possible return value as well - apart for int.
@judyjoseph
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@judyjoseph
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@judyjoseph judyjoseph merged commit a93e1ab into sonic-net:master May 18, 2022
@sanmalho-git sanmalho-git deleted the chassis-pmon branch June 29, 2022 15:54
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