Skip to content

Commit

Permalink
Add fan_drawer.py for support show fan
Browse files Browse the repository at this point in the history
  • Loading branch information
Jostar Yang committed Mar 14, 2022
1 parent 437b11a commit 2596cc3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env python


try:
from sonic_platform_pddf_base.pddf_fan_drawer import PddfFanDrawer
except ImportError as e:
raise ImportError(str(e) + "- required module not found")


class FanDrawer(PddfFanDrawer):
"""PDDF Platform-Specific Fan-Drawer class"""

def __init__(self, tray_idx, pddf_data=None, pddf_plugin_data=None):
# idx is 0-based
PddfFanDrawer.__init__(self, tray_idx, pddf_data, pddf_plugin_data)

# Provide the functions/variables below for which implementation is to be overwritten
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class Thermal(PddfThermal):
"""PDDF Platform-Specific Thermal class"""

def __init__(self, index, pddf_data=None, pddf_plugin_data=None):
PddfThermal.__init__(self, index, pddf_data, pddf_plugin_data)
def __init__(self, index, pddf_data=None, pddf_plugin_data=None, is_psu_thermal=False, psu_index=0):
PddfThermal.__init__(self, index, pddf_data, pddf_plugin_data, is_psu_thermal, psu_index)

# Provide the functions/variables below for which implementation is to be overwritten

0 comments on commit 2596cc3

Please sign in to comment.