-
Notifications
You must be signed in to change notification settings - Fork 744
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flap interface after sfp reset (#16375)
Description of PR Summary: Fixes interface stays down after tests/platform_tests/api/test_sfp.py::sfp_reset() And causing error during shutdown_ebgp fixture teardown. Type of change Bug fix Testbed and Framework(new/improvement) Test case(new/improvement) Back port request 202012 202205 202305 202311 202405 202411 Approach What is the motivation for this PR? keep interface up after sfp_reset if it's T2 and QSFP-DD SFP. How did you do it? flap the interface after sfp_reset to restore the interface state. How did you verify/test it? passed on physical testbed with admin@svcstr2-8800-lc1-1:~$ sudo sfputil show eeprom -d -p Ethernet0 Ethernet0: SFP EEPROM detected ... Application Advertisement: 400GAUI-8 C2M (Annex 120E) - Host Assign (0x1) - Active Cable assembly with BER < 5x10^-5 - Media Assign (0x1) CAUI-4 C2M (Annex 83E) - Host Assign (0x1) - Active Cable assembly with BER < 5x10^-5 - Media Assign (0x1) CMIS Revision: 4.0 Connector: No separable connector Encoding: N/A Extended Identifier: Power Class 5 (10.0W Max) Extended RateSelect Compliance: N/A Hardware Revision: 1.0 Host Electrical Interface: 400GAUI-8 C2M (Annex 120E) Host Lane Assignment Options: 1 Host Lane Count: 8 Identifier: QSFP-DD Double Density 8X Pluggable Transceiver Length Cable Assembly(m): 1.0 ...... platform_tests/api/test_sfp.py::TestSfpApi::test_reset[xxx-lc1-1] PASSED [ 73%] ...... =========================== short test summary info ============================ FAILED platform_tests/api/test_sfp.py::TestSfpApi::test_lpmode[svcstr2-8800-lc1-1] <<<< this is separate issue, not related to this PR. ========================= 1 failed, 22 passed, 1 warning in 2104.41s (0:35:04) ========================= `` ============= 1 failed, 22 passed, 1 warning in 2104.41s (0:35:04) ============= Any platform specific information? Supported testbed topology if it's a new test case? Co-authored-by: [email protected]
- Loading branch information
Showing
6 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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