Skip to content

Commit a95834b

Browse files
authored
[DeviceBase] Added hardware revision number to generic device properties (#184)
Added a `get_revision()` method to the generic platform device class which returns the hardware revision number of the device as a string.
1 parent f4901a0 commit a95834b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

sonic_platform_base/device_base.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ def get_serial(self):
5555
"""
5656
raise NotImplementedError
5757

58+
def get_revision(self):
59+
"""
60+
Retrieves the hardware revision of the device
61+
62+
Returns:
63+
string: Revision value of device
64+
"""
65+
raise NotImplementedError
66+
5867
def get_status(self):
5968
"""
6069
Retrieves the operational status of the device

0 commit comments

Comments
 (0)