Skip to content

Enhancement: [PDDF] Implement get_fault() for PddfFan #24095

@louis-nexthop

Description

@louis-nexthop

Is it platform specific

generic

Importance or Severity

low

Description of the enhancement

As of now, sonic_platform_pddf_base.PddfFan does not implement get_fault(). So, the fan{idx}_fault attributes aren't utilized.

Current Behavior

get_fault() is not implemented

Proposed Behavior

Implement PddfFan.get_fault() by reading a fan{idx}_fault attribute from FAN-CTRL pddf object.

Also, introduce FAN's fault to pd-plugin.json like:

    "FAN": {
        ...
        "fault": {
            "i2c": {
                "valmap": {
                    "1": true,
                    "0": false
                }
            }
        },
        ...
    }

so each vendor can specify what raw value maps to

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions