Commit e882c2a
Auto-populate XPHY backplane port overrides from qsfpTestConfig
Summary:
When FLAGS_override_program_iphy_ports_for_test is set, WedgeManager auto-populates overrideTcvrToPortAndProfileForTest_ from qsfpTestConfig for ports WITH transceivers. This change adds the equivalent functionality in PortManager for ports WITHOUT transceivers but WITH XPHY.
Changes:
1. Added setOverrideXphyNoTcvrPortToProfileForTesting() call in PortManager::init()
2. Added the logic in setOverrideXphyNoTcvrPortToProfileForTesting() that reads cabledPortPairs from qsfpTestConfig and adds ports that does not have a transiever but has xphy
** Also removed the else branch from setOverrideXphyNoTcvrPortToProfileForTesting() that cleared the port-to-profile override map when called without arguments and FLAGS_override_program_iphy_ports_for_test was not set. This was causing unit tests to fail because they set up the override map first, then PortManager::init() would call this function without arguments and clear the previously-set mappings. This aligns with WedgeManager::setOverrideTcvrToPortAndProfileForTesting() which also doesn't have an else branch that clears its override map.
Reviewed By: shiva-menta
Differential Revision: D91012058
fbshipit-source-id: f2e1c7517870505a528dbc3c4e2796b2a9526a621 parent ad8d956 commit e882c2a
File tree
5 files changed
+31
-7
lines changed- fboss/qsfp_service
- platforms/wedge
5 files changed
+31
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| 276 | + | |
276 | 277 | | |
277 | 278 | | |
278 | 279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
181 | 187 | | |
182 | 188 | | |
183 | 189 | | |
| |||
890 | 896 | | |
891 | 897 | | |
892 | 898 | | |
893 | | - | |
894 | | - | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
895 | 916 | | |
896 | 917 | | |
897 | 918 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
78 | 83 | | |
79 | 84 | | |
80 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 27 | | |
33 | 28 | | |
34 | 29 | | |
| |||
0 commit comments