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

Complete Platform Validator PR #2857

Merged
merged 5 commits into from
Jun 8, 2023

Conversation

isabelmsft
Copy link
Contributor

@isabelmsft isabelmsft commented May 31, 2023

Original platform validator PR https://github.com/sonic-net/sonic-utilities/pull/2791/checks?check_run_id=12708751588 was merged and reverted due to unexpected test case behavior blocking submodule advance. This was fixed by specifically considering the virtual switch platform and identifying the appropriate ASIC. Now, this platform validator PR brings back the original changes

ADO 17747379

@isabelmsft isabelmsft changed the title Complete platform redo Complete Platform Validator PR May 31, 2023
@isabelmsft isabelmsft marked this pull request as ready for review May 31, 2023 20:19
@qiluo-msft qiluo-msft marked this pull request as draft May 31, 2023 21:08
qiluo-msft
qiluo-msft previously approved these changes May 31, 2023
@isabelmsft isabelmsft marked this pull request as ready for review June 1, 2023 21:39
if device_info.get_sonic_version_info()['asic_type'] == 'cisco-8000':
asic = "cisco-8000"
elif device_info.get_sonic_version_info()['asic_type'] == 'vs':
asic = "td2"
Copy link
Contributor

@qiluo-msft qiluo-msft Jun 1, 2023

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the PR to fully consider vs hwskus

if asic_type == 'broadcom' or asic_type == 'vs':
broadcom_asics = asic_mapping["broadcom_asics"]
for asic_shorthand, hwskus in broadcom_asics.items():
if asic != "unknown":
Copy link
Contributor

@qiluo-msft qiluo-msft Jun 6, 2023

Choose a reason for hiding this comment

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

asic

Should you check unknown much earlier? #Closed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

asic is set to "unknown" at the start of the function. It remains unknown until one of the specified asic types in the table is identified. The purpose of this particular check is to stop iterating over all possible broadcom asics once the asic is already identified.

Copy link
Contributor

Choose a reason for hiding this comment

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

If it is already identified as spc1, you can return immediately.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to return spc1 immediately

@isabelmsft
Copy link
Contributor Author

isabelmsft commented Jun 19, 2023

PR to cherry-pick to 202205 branch: #2883

isabelmsft added a commit to isabelmsft/sonic-utilities that referenced this pull request Jun 19, 2023
Cherry-pick PR 2692, 2818, and 2857 to 202205
yxieca pushed a commit that referenced this pull request Jun 23, 2023
* [GCU] Complete RDMA Platform Validator PR (#2857)
Cherry-pick PR 2692, 2818, and 2857 to 202205
isabelmsft added a commit to isabelmsft/sonic-utilities that referenced this pull request Jul 12, 2023
isabelmsft added a commit to isabelmsft/sonic-utilities that referenced this pull request Aug 10, 2023
…ic-net#2883)

* [GCU] Complete RDMA Platform Validator PR (sonic-net#2857)
Cherry-pick PR 2692, 2818, and 2857 to 202205
pdhruv-marvell pushed a commit to pdhruv-marvell/sonic-utilities that referenced this pull request Aug 23, 2023
isabelmsft added a commit to isabelmsft/sonic-utilities that referenced this pull request Nov 22, 2023
yxieca pushed a commit that referenced this pull request Nov 29, 2023
Cherry-pick PR #2692 (set up test infrastructure used in later PR 2857), #2857 (platform validator PR), #2913 (edge case fix), #2951, #3018 (add support for new Mellanox HwSKU in conf file)
This change stops GCU from modifying a protected RDMA field.

Signed-off-by: Stephen Sun <stephens@nvidia.com>
Co-authored-by: Stephen Sun <5379172+stephenxs@users.noreply.github.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.

3 participants