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

Remove tm and all dependencies #7

Closed
wants to merge 2 commits into from
Closed
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
@@ -10,7 +10,6 @@
from sonic_platform.fan_drawer import fan_drawer_list_get
from sonic_platform.thermal import thermal_list_get
from eeprom import Eeprom
from sonic_platform.thermal_manager import ThermalManager

from sonic_platform.platform_thrift_client import pltfm_mgr_ready
from sonic_platform.platform_thrift_client import thrift_try
@@ -41,8 +40,6 @@ def __init__(self):
self.__thermals = None
self.__psu_list = None
self.__sfp_list = None
self.__thermal_mngr = None
self.__polling_thermal_time = 30

self.ready = False
self.phy_port_cur_state = {}
@@ -114,16 +111,6 @@ def _sfp_list(self):
def _sfp_list(self, value):
pass

@property
def _thermal_mngr(self):
if self.__thermal_mngr is None:
self.__thermal_mngr = ThermalManager(self.__polling_thermal_time)
return self.__thermal_mngr

@_thermal_mngr.setter
def _thermal_mngr(self, value):
self.__thermal_mngr = ThermalManager(value)

def __update_port_info(self):
def qsfp_max_port_get(client):
return client.pltfm_mgr.pltfm_mgr_qsfp_get_max_port()
@@ -346,10 +333,3 @@ def get_status_led(self):
specified.
"""
return self.system_led

def get_thermal_manager(self):
return self._thermal_mngr

def __del__(self):
if self.__thermal_mngr is not None:
self.__thermal_mngr.stop()

This file was deleted.