Commit d6d8d9c
authored
Modify the logic that cable can be reset or not (#6085)
For some plaform, the SFP cable can not reset, and for some platform the cable maybe RJ45
Add the option --unresettable_xcvr_types to let customer specify the type which type can not reset
- What is the motivation for this PR?
Modify the logic for check if the cable can be reset or not
- How did you do it?
Add option --unresettable_xcvr_types to let customer specify which types are not support to reset
- How did you verify/test it?
Run the test_sfp.py::test_reset on with the SFP port, the test can pass
py.test platform_tests/api/test_sfp.py::TestSfpApi::test_reset --unresettable_xcvr_types "SFP"
py.test platform_tests/api/test_sfp.py::TestSfpApi::test_reset --unresettable_xcvr_types "SFP" --unresettable_xcvr_types "RJ45"
- Any platform specific information?
No
- Supported testbed topology if it's a new test case?
No1 parent a02fdcc commit d6d8d9c
2 files changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
| 185 | + | |
185 | 186 | | |
186 | | - | |
187 | | - | |
188 | | - | |
| 187 | + | |
189 | 188 | | |
190 | 189 | | |
191 | 190 | | |
| |||
487 | 486 | | |
488 | 487 | | |
489 | 488 | | |
490 | | - | |
| 489 | + | |
491 | 490 | | |
492 | 491 | | |
493 | 492 | | |
| |||
498 | 497 | | |
499 | 498 | | |
500 | 499 | | |
501 | | - | |
| 500 | + | |
502 | 501 | | |
503 | 502 | | |
504 | 503 | | |
| |||
0 commit comments