[SmartSwitch] Update the get_mgmt_ip for DPU#22699
Open
congh-nvidia wants to merge 1 commit intosonic-net:masterfrom
Open
[SmartSwitch] Update the get_mgmt_ip for DPU#22699congh-nvidia wants to merge 1 commit intosonic-net:masterfrom
congh-nvidia wants to merge 1 commit intosonic-net:masterfrom
Conversation
When test runs on a SmartSwitch DPU, the exposed mgmt interface is the switch mgmt IP with a NAT port. And it's IPv4 only for now.
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
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
Summary:
When test runs on a SmartSwitch DPU(with the DPU host as the host-pattern in the pytest command), the exposed mgmt interface is the switch mgmt IP with a NAT port. And it's IPv4 only for now.
So we need return the switch IP directly instead of getting the IP of "eth0"(which also not exist in a DPU).
Type of change
Back port request
Approach
What is the motivation for this PR?
Update the get_mgmt_ip in sonic host for SmartSwitch DPU
How did you do it?
Return the switch IP directly when it's DPU.
How did you verify/test it?
Run the test platform_tests/api/test_watchdog.py on a DPU host-pattern, all passed.
Any platform specific information?
Only for smartswitch
Supported testbed topology if it's a new test case?
Documentation