Skip to content

Commit 4110092

Browse files
authored
[psu_base]: Add method to retrieve number of PSUs available on the device (#133)
1 parent ffe8718 commit 4110092

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sonic_psu/psu_base.py

+9
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@
1414
class PsuBase(object):
1515
__metaclass__ = abc.ABCMeta
1616

17+
@abc.abstractmethod
18+
def get_num_psus(self):
19+
"""
20+
Retrieves the number of PSUs available on the device
21+
22+
:return: An integer, the number of PSUs available on the device
23+
"""
24+
return 0
25+
1726
@abc.abstractmethod
1827
def get_psu_status(self, index):
1928
"""

0 commit comments

Comments
 (0)