-
Notifications
You must be signed in to change notification settings - Fork 1k
qos-sai:dwrr:cisco-8000:Handle non-multiasic part as well for the dshell-script change. #16315
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
bbed02b
Handle non-multiasic part as well.
rraghav-cisco d2d8f5f
Change the PTF code to handle single or multi asic as well.
rraghav-cisco d4a4c79
Modified the logic to find if it is a single or multi asic.
rraghav-cisco fa3a6dc
Change the name of the function, remove '_and_run' part.
rraghav-cisco File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3856,8 +3856,20 @@ def runTest(self): | |
| self.test_params['dut_username'], | ||
| self.test_params['dut_password'], | ||
| cmd) | ||
| if err != "" and out == "": | ||
| raise RuntimeError("cmd({}) might have failed in the DUT. Error:{}".format(cmd, err)) | ||
| if err and out == []: | ||
| if "Invalid value for " in " ".join(err): | ||
|
||
| cmd = "sudo show platform npu script -s set_scheduler.py" | ||
| out, err, ret = self.exec_cmd_on_dut( | ||
| self.dst_server_ip, | ||
| self.test_params['dut_username'], | ||
| self.test_params['dut_password'], | ||
| cmd) | ||
| if err and out == []: | ||
| raise RuntimeError("cmd({}) might have failed in the DUT. Error:{}".format(cmd, err)) | ||
| else: | ||
| print("Success in setting scheduler in sAsic DUT.", file=sys.stderr) | ||
| else: | ||
| print("Success in setting scheduler in mAsic DUT.", file=sys.stderr) | ||
| else: | ||
| # Release port | ||
| self.sai_thrift_port_tx_enable( | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function copy_and_run_set_cir_script_cisco_8000() just upload dshell script to dut, not really run this script. why do we call it copy_and_run__ ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is asic value not 'none' on single asic platforms? If the value is none, would it also solve the issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yxieca : Yes, it was "0" for single-asic. That is why the original code failed. If it were "None" the original code would have worked.