Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Celestica] Ensure concrete platform API classes call base class initializer #6852

Merged
merged 1 commit into from
Feb 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class Thermal(ThermalBase):
SS_CONFIG_PATH = "/usr/share/sonic/device/x86_64-cel_e1031-r0/sensors.conf"

def __init__(self, thermal_index):
ThermalBase.__init__(self)

self.index = thermal_index

# Add thermal name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
class Watchdog(WatchdogBase):

def __init__(self):
WatchdogBase.__init__(self)

self.watchdog, self.wdt_main_dev_name = self._get_wdt()
self.status_path = "/sys/class/watchdog/%s/status" % self.wdt_main_dev_name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class Thermal(ThermalBase):
SS_CONFIG_PATH = "/usr/share/sonic/device/x86_64-cel_seastone-r0/sensors.conf"

def __init__(self, thermal_index, airflow):
ThermalBase.__init__(self)
self.index = thermal_index
self._api_helper = APIHelper()
self._airflow = airflow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
class Watchdog(WatchdogBase):

def __init__(self):
WatchdogBase.__init__(self)

# Init helper
self._api_helper = APIHelper()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
class Watchdog(WatchdogBase):

def __init__(self):
WatchdogBase.__init__(self)

self._api_common = Common()

# Init cpld reg path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class Fan(FanBase):
"""Platform-specific Fan class"""

def __init__(self, fan_tray_index, fan_index=0, is_psu_fan=False, psu_index=0):
FanBase.__init__(self)
self.fan_index = fan_index
self.fan_tray_index = fan_tray_index
self.is_psu_fan = is_psu_fan
Expand Down