Skip to content

[SmartSwitch] Update the get_mgmt_ip for DPU#22699

Open
congh-nvidia wants to merge 1 commit intosonic-net:masterfrom
congh-nvidia:mgmt_ip
Open

[SmartSwitch] Update the get_mgmt_ip for DPU#22699
congh-nvidia wants to merge 1 commit intosonic-net:masterfrom
congh-nvidia:mgmt_ip

Conversation

@congh-nvidia
Copy link
Contributor

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

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

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

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.
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

2 participants