Skip to content

Commit

Permalink
Support new ssd model Virtium VTSM24ABXI160-BM110006
Browse files Browse the repository at this point in the history
The Virtium prefix is shown in device model from smartctl output, so
keep it.

Signed-off-by: Yuanzhe, Liu <yualiu@nvidia.com>
  • Loading branch information
yuazhe committed Sep 9, 2024
1 parent e55eebf commit 667654f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sonic_platform_base/sonic_storage/ssd.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,13 @@ def parse_virtium_info(self):
pass
else:
health_raw = NOT_AVAILABLE
# The ID of "Remaining Life Left" attribute on 'VSFDM8XC240G-V11-T'
# and 'Virtium VTSM24ABXI160-BM110006' device is 231
# However, it is not recognized by SmartCmd nor smartctl so far
# We need to parse them using the ID number
special_ssd = ['VSFDM8XC240G-V11-T', 'Virtium VTSM24ABXI160-BM110006']
try:
if self.model == 'VSFDM8XC240G-V11-T':
# The ID of "Remaining Life Left" attribute on 'VSFDM8XC240G-V11-T' device is 231
# However, it is not recognized by SmartCmd nor smartctl so far
# We need to parse it using the ID number
if self.model in special_ssd:
health_raw = self.parse_id_number(VIRTIUM_HEALTH_ID, self.vendor_ssd_info)
self.health = float(health_raw.split()[2]) if health_raw != NOT_AVAILABLE else NOT_AVAILABLE
else:
Expand Down

0 comments on commit 667654f

Please sign in to comment.