[Snappi] Fixing BGP configuration for snappi reboot cases #14700
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:Fixing BGP configuration for snappi reboot cases
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
The BGP dut configuration was not wroking as expected , so the script has been updated with the fixes
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
Output
===================================================================================== warnings summary =====================================================================================
../../.local/lib/python3.8/site-packages/_pytest/config/init.py:755
/var/AzDevOps/.local/lib/python3.8/site-packages/_pytest/config/init.py:755: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: tests.common.plugins.loganalyzer
self.import_plugin(import_spec)
../../.local/lib/python3.8/site-packages/_pytest/config/init.py:755
/var/AzDevOps/.local/lib/python3.8/site-packages/_pytest/config/init.py:755: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: tests.common.plugins.sanity_check
self.import_plugin(import_spec)
../../.local/lib/python3.8/site-packages/_pytest/config/init.py:755
/var/AzDevOps/.local/lib/python3.8/site-packages/_pytest/config/init.py:755: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: tests.common.plugins.test_completeness
self.import_plugin(import_spec)
../../.local/lib/python3.8/site-packages/_pytest/config/init.py:755
/var/AzDevOps/.local/lib/python3.8/site-packages/_pytest/config/init.py:755: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: tests.common.dualtor
self.import_plugin(import_spec)
../../../../usr/local/lib/python3.8/dist-packages/paramiko/transport.py:236
/usr/local/lib/python3.8/dist-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated
"class": algorithms.Blowfish,
snappi_tests/reboot/test_soft_reboot.py::test_reboot[soft]
snappi_tests/reboot/test_soft_reboot.py::test_reboot[soft]
snappi_tests/reboot/test_soft_reboot.py::test_reboot[soft]
snappi_tests/reboot/test_soft_reboot.py::test_reboot[soft]
snappi_tests/reboot/test_soft_reboot.py::test_reboot[soft]
snappi_tests/reboot/test_soft_reboot.py::test_reboot[soft]
/usr/local/lib/python3.8/dist-packages/pytest_ansible/module_dispatcher/v213.py:100: UserWarning: provided hosts list is empty, only localhost is available
warnings.warn("provided hosts list is empty, only localhost is available")
snappi_tests/reboot/test_soft_reboot.py::test_reboot[soft]
/var/AzDevOps/.local/lib/python3.8/site-packages/snappi_ixnetwork/device/utils.py:2: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
from collections import namedtuple, Mapping
snappi_tests/reboot/test_soft_reboot.py::test_reboot[soft]
snappi_tests/reboot/test_soft_reboot.py::test_reboot[soft]
/usr/local/lib/python3.8/dist-packages/ixnetwork_restpy/testplatform/sessions/sessions.py:59: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
elif LooseVersion(build_number) < LooseVersion('8.52'):
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
---------------------------------------------------------------------------------- live log sessionfinish ----------------------------------------------------------------------------------
00:04:17 init.pytest_terminal_summary L0067 INFO | Can not get Allure report URL. Please check logs
======================================================================== 1 passed, 14 warnings in 842.98s (0:14:02) =========================