-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fan_drawer.py for support show fan
- Loading branch information
Jostar Yang
committed
Mar 14, 2022
1 parent
437b11a
commit 2596cc3
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
platform/broadcom/sonic-platform-modules-accton/as5835-54x/sonic_platform/fan_drawer.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters