Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hw-mgmt: scripts Fix FAN dir attribute for PN in none-MLNX format
For the systems, with FANs equiped with FRU EEPRM fan_direction attr value can be extracted from FRU PN field. If PN is not in MLNX format (MTEF-FANR-A) or broken - not possible to get fan_direction and fanX_dir attribute not crating. With this fix added fan direction value == 2, which means "FAN direction can't be extracted" attribute fanX_direction can be in states: 1: P2C (forward) air flow direction 0: C2P (reverse) air flow direction 2: Unknown air flow direction Signed-off-by: Oleksandr Shamray <[email protected]>
- Loading branch information