-
Notifications
You must be signed in to change notification settings - Fork 908
support IPv6 addresses by wrapping them in brackets if necessary. #21459
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
base: master
Are you sure you want to change the base?
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
tests/gnmi/grpc_utils.py
Outdated
| """ | ||
| # Get DUT gRPC server address and port | ||
| ip = duthost.mgmt_ip | ||
| if ":" in duthost.mgmt_ip and not duthost.mgmt_ip.startswith('['): |
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.
Xixue, this does not seem like a python way to make this operation. Also, the motivation of this change is unclear
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.
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
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Xixue Jia <[email protected]>
… wrapping them in brackets when necessary Signed-off-by: Xixue Jia <[email protected]>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Description of PR
Summary: support IPv6 addresses by wrapping them in brackets if necessary.
Fixes # (issue)
Type of change
Back port request
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