Skip to content

Commit

Permalink
[DeviceBase] Added hardware revision number to generic device proper…
Browse files Browse the repository at this point in the history
…ties (sonic-net#184)

Added a `get_revision()` method to the generic platform device class which returns the hardware revision number of the device as a string.
  • Loading branch information
alexrallen committed Apr 20, 2021
1 parent f4901a0 commit a95834b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sonic_platform_base/device_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ def get_serial(self):
"""
raise NotImplementedError

def get_revision(self):
"""
Retrieves the hardware revision of the device
Returns:
string: Revision value of device
"""
raise NotImplementedError

def get_status(self):
"""
Retrieves the operational status of the device
Expand Down

0 comments on commit a95834b

Please sign in to comment.