Skip to content

Conversation

@xixuej
Copy link
Contributor

@xixuej xixuej commented Nov 27, 2025

Description of PR

Summary: support IPv6 addresses by wrapping them in brackets if necessary.
Fixes # (issue)

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
  • 202511

Approach

What is the motivation for this PR?

regression failure on ipv6 only mgmt ip on dut was introduced by CR #21303. This PR is to address the test failure of test_gnoi_system_time on dut with ipv6 mgmt ip only

How did you do it?

How did you verify/test it?

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xixuej
Copy link
Contributor Author

xixuej commented Nov 27, 2025

@hdwhdw can you pls review this CR. I encountered regression failures introduced by CR #21303. I do see there're almost duplicated function definitions, why not reuse the existing fixture?

@nhe-NV nhe-NV added the Request for 202511 branch Request to backport a change to 202511 branch label Nov 29, 2025
"""
# Get DUT gRPC server address and port
ip = duthost.mgmt_ip
if ":" in duthost.mgmt_ip and not duthost.mgmt_ip.startswith('['):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Xixue, this does not seem like a python way to make this operation. Also, the motivation of this change is unclear

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @roy-sror , I've updated the motivation in the description, i.e. this is to fix the failure on ipv6 mgmt port setups. Also updated the code change per your suggestion

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@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

Request for 202511 branch Request to backport a change to 202511 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants