Skip to content
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
10 changes: 10 additions & 0 deletions sonic_platform_base/chassis_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,16 @@ def is_liquid_cooled(self):
"""
return False

def get_liquid_cooling(self):
"""
Retrieves the liquid cooling object of the chassis
Returns:
An object derived from LiquidCoolingBase representing the
chassis liquid cooling subsystem (including leakage sensors).
"""
return NotImplementedError

def init_midplane_switch(self):
"""
Initializes the midplane functionality of the modular chassis. For
Expand Down
4 changes: 4 additions & 0 deletions tests/chassis_base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ def is_liquid_cooled(self):
liquid = LiquidCooledChassis()
assert liquid.is_liquid_cooled() is True

def test_get_liquid_cooling(self):
chassis = ChassisBase()
assert chassis.get_liquid_cooling() is NotImplementedError

def test_switch_host_module_at_index_zero(self):
'''
On a BMC chassis, only the Switch-Host is modelled as a module.
Expand Down