Skip to content

Commit

Permalink
[psu_base]: Add method to retrieve number of PSUs available on the de…
Browse files Browse the repository at this point in the history
…vice (sonic-net#133)
  • Loading branch information
jleveque authored Oct 21, 2017
1 parent ffe8718 commit 4110092
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sonic_psu/psu_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@
class PsuBase(object):
__metaclass__ = abc.ABCMeta

@abc.abstractmethod
def get_num_psus(self):
"""
Retrieves the number of PSUs available on the device
:return: An integer, the number of PSUs available on the device
"""
return 0

@abc.abstractmethod
def get_psu_status(self, index):
"""
Expand Down

0 comments on commit 4110092

Please sign in to comment.