Skip to content

Commit

Permalink
reduce the redundant code
Browse files Browse the repository at this point in the history
Signed-off-by: Kebo Liu <kebol@nvidia.com>
  • Loading branch information
keboliu committed Apr 10, 2021
1 parent 6aa3dc6 commit 7b62632
Show file tree
Hide file tree
Showing 7 changed files with 285 additions and 436 deletions.
92 changes: 0 additions & 92 deletions src/sonic_ax_impl/mibs/ietf/fan_sensor_data.py

This file was deleted.

113 changes: 0 additions & 113 deletions src/sonic_ax_impl/mibs/ietf/psu_sensor_data.py

This file was deleted.

7 changes: 2 additions & 5 deletions src/sonic_ax_impl/mibs/ietf/rfc3433.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
from .physical_entity_sub_oid_generator import get_psu_sub_id
from .physical_entity_sub_oid_generator import get_psu_sensor_sub_id
from .physical_entity_sub_oid_generator import get_chassis_thermal_sub_id
from .transceiver_sensor_data import TransceiverSensorData
from .psu_sensor_data import PSUSensorData
from .fan_sensor_data import FANSensorData
from .thermal_sensor_data import ThermalSensorData
from .sensor_data import ThermalSensorData, FANSensorData, PSUSensorData, TransceiverSensorData

NOT_AVAILABLE = 'N/A'

Expand Down Expand Up @@ -330,7 +327,7 @@ class ThermalSensor(SensorInterface):

TYPE = EntitySensorDataType.CELSIUS
SCALE = EntitySensorDataScale.UNITS
PRECISION = 1
PRECISION = 3


ThermalSensorData.bind_sensor_interface({
Expand Down
Loading

0 comments on commit 7b62632

Please sign in to comment.