Commit 1494b28
authored
[snmp] skip psu fans during test_fan_info (#6265)
What is the motivation for this PR?
Submodule update changed fan information in redis database. Changes added 2 psu fans to 4 existing fans to FAN_INFO on Arista platform. According to documentation, FAN_INFO is the source of fan mib entries, PSU_INFO - of psu related entries, meaning tests for checking physical entity mib should be separated for FAN_INFO and PSU_INFO, and PSU entries should not be checked in a fan test (in this case - in test_fan_info)
How did you do it?
I checked handling of psu related entries in another test created for fan mib entries - test_remove_insert_fan_and_check_fan_info. This test skips psu entries:
if 'PSU' in parent_name:
continue
How did you verify/test it?
Run snmp/test_snmp_phy_entity.py::test_fan_info1 parent 6db9908 commit 1494b28
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
281 | 283 | | |
282 | 284 | | |
283 | 285 | | |
284 | 286 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
| 287 | + | |
289 | 288 | | |
290 | 289 | | |
291 | 290 | | |
| |||
0 commit comments