[action] [PR:11957] [IPv6 only]Fixture to convert/revert the mgmt-ip to IPv6 olny, enhance connection plugin#11984
Closed
mssonicbld wants to merge 1 commit intosonic-net:202305from
Closed
Conversation
… the connection plugin to retry with IPv6 addr if IPv4 addr is unavailable (sonic-net#11957) Approach What is the motivation for this PR? Support test mgmt-ip IPv6 only scenario. How did you do it? Remove the IPv4 mgmt address before the test module starts, and restore after the test module is finished. Enhance the connection plugging to first connect with the IPv4 address, and retry with the IPv6 address if IPv4 is unavailable. Add a new test module with examples to test the IPv6-only scenario. How did you verify/test it? Run on physical testbeds, with dual-stack mgmt-ip addresses testbed and only with IPv6/IPv4 mgmt-ip address testbed. ================================================================================================================== test session starts ================================================================================================================== ip/test_mgmt_ipv6_only.py::test_bgp_facts[-None] PASSED [ 25%] ip/test_mgmt_ipv6_only.py::test_bgp_facts_ipv6_only[-None] PASSED [ 50%] ip/test_mgmt_ipv6_only.py::test_show_features[-4] PASSED [ 75%] ip/test_mgmt_ipv6_only.py::test_show_features_ipv6_only[-4] PASSED [100%] -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html --------------------------------------------------------------------------------------------- generated xml file: /var/src/sonic-mgmt-int/tests/logs/tr.xml --------------------------------------------------------------------------------------------- ======================================================================================================= 4 passed, 3 warnings in 741.52s (0:12:21) ======================================================================================================= INFO:root:Can not get Allure report URL. Please check logs jianquanye@sonic-mgmt-jianquanye:/var/src/sonic-mgmt-int/tests$
Merged
8 tasks
Collaborator
Author
|
Original PR: #11957 |
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:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
Support test mgmt-ip IPv6 only scenario.
How did you do it?
Remove the IPv4 mgmt address before the test module starts, and restore after the test module is finished.
Enhance the connection plugging to first connect with the IPv4 address, and retry with the IPv6 address if IPv4 is unavailable.
Add a new test module with examples to test the IPv6-only scenario.
How did you verify/test it?
Run on physical testbeds, with dual-stack mgmt-ip addresses testbed and only with IPv6/IPv4 mgmt-ip address testbed.
================================================================================================================== test session starts ==================================================================================================================
ip/test_mgmt_ipv6_only.py::test_bgp_facts[-None] PASSED [ 25%]
ip/test_mgmt_ipv6_only.py::test_bgp_facts_ipv6_only[-None] PASSED [ 50%]
ip/test_mgmt_ipv6_only.py::test_show_features[-4] PASSED [ 75%]
ip/test_mgmt_ipv6_only.py::test_show_features_ipv6_only[-4] PASSED [100%]
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
--------------------------------------------------------------------------------------------- generated xml file: /var/src/sonic-mgmt-int/tests/logs/tr.xml ---------------------------------------------------------------------------------------------
======================================================================================================= 4 passed, 3 warnings in 741.52s (0:12:21) =======================================================================================================
INFO:root:Can not get Allure report URL. Please check logs
jianquanye@sonic-mgmt-jianquanye:/var/src/sonic-mgmt-int/tests$
Any platform specific information?
No.
Supported testbed topology if it's a new test case?
All topologies.
Documentation