Skip to content

[202205][qos] address qos helper exception when hwsku is None#8148

Merged
yxieca merged 1 commit intosonic-net:202205from
yxieca:qos
Apr 25, 2023
Merged

[202205][qos] address qos helper exception when hwsku is None#8148
yxieca merged 1 commit intosonic-net:202205from
yxieca:qos

Conversation

@yxieca
Copy link
Collaborator

@yxieca yxieca commented Apr 25, 2023

Summary:
Fixes # (issue)

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

This change is to address an issue introduced by PR #8059, where hwsku might be None since caller didn't pass it in. And the check "Nokia" in hwsku causes exception.

How did you do it?

Protect against hwsku is None scenario.

How did you verify/test it?

Manually tested the new code structure when hwsku is none.

Any platform specific information?

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

Documentation

@yxieca yxieca changed the title [202205][qos] address qos helper issue [202205][qos] address qos helper exception when hwsku is None Apr 25, 2023
@yxieca yxieca merged commit 7d8f8f0 into sonic-net:202205 Apr 25, 2023
@yxieca yxieca deleted the qos branch April 25, 2023 17:49
wsycqyz added a commit to wsycqyz/sonic-mgmt that referenced this pull request Apr 26, 2023
wsycqyz added a commit that referenced this pull request Apr 26, 2023
…re (#8154)

What is the motivation for this PR?
QoS SAI test failed (test setup failed) due to #8059 and #8148

How did you do it?
* Revert "[202205][qos] address qos helper issue (#8148)"
This reverts commit 7d8f8f0.
* Revert "Enhance qos tests to support single-asic, multi-asic, and multi-dut testing (#8059)"
This reverts commit b1beed0.
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.

3 participants