Add fixtures to call dpus on smartswtich directly#15695
Merged
bingwang-ms merged 3 commits intosonic-net:masterfrom Dec 17, 2024
Merged
Add fixtures to call dpus on smartswtich directly#15695bingwang-ms merged 3 commits intosonic-net:masterfrom
bingwang-ms merged 3 commits intosonic-net:masterfrom
Conversation
8 tasks
Contributor
|
@nissampa @rameshraghupathy for viz |
Contributor
Author
|
Hi @theasianpianist , Can you please review the reply? |
congh-nvidia
reviewed
Dec 6, 2024
c40bad7 to
9606cbb
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…tswtich like calling switch with dpuhosts or duphost
9606cbb to
92e1a77
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
1. remove dut with dpu string, otherwise when add topo, we don't need to add topo for dpu 2. remove space for duts, otherwise it when using echo to create fail will fail
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
|
The commit of update testbed-cli.sh is to resove the following issues:
|
theasianpianist
approved these changes
Dec 13, 2024
Contributor
theasianpianist
left a comment
There was a problem hiding this comment.
this will be great to have, thanks!
8 tasks
11 tasks
11 tasks
11 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description of PR
The mgmt IP of dpus on smartswitch is private IP(169.254.200.0/24), we cannot access it directly out of the switch. To operate dpu like operating switch when impmenting the test case(dash, platform on dup), we add two fixtures: dpuhost and fixture_dpuhosts. They are same as duthost and fixture_duthosts.
Before the calling the fixtures, we need to do the steps as follows:
[SmartSwitch] Added inbound traffic capability for DPU management traffic script sonic-buildimage#20635
e.g.
e.g.
e.g.
So, we can access the dpu directly out of switch such as "ssh admin@10.200.100.2 -p 5021"
Run tests usage:
When runing case only on dpu(For the exsiting tests such as platform, techsupport, we can run them without any case change):
When running case on smartswitch(NPU) and dpu:
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
Add fixtures to operate dup directly out of switch like operating switch
How did you do it?
Add fixures : duthost and fixture_duthosts
How did you verify/test it?
run platform case on dpu only and dash case on smartswitch
Any platform specific information?
SmartSwtich
Supported testbed topology if it's a new test case?
Documentation