Skip to content

Commit

Permalink
[Edgecore][device][platform] Add Add plugins/ssd_util.py to support c…
Browse files Browse the repository at this point in the history
…ommand:[show platform ssdhealth --vendor].

Signed-off-by: michael_shih <[email protected]>
  • Loading branch information
ec-michael-shih committed May 4, 2023
1 parent 14491ab commit fd54bca
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions device/accton/x86_64-accton_as9736_64d-r0/plugins/ssd_util.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# ssd_util.py
#
# Platform-specific SSD interface for SONiC
##

try:
from sonic_platform_base.sonic_ssd.ssd_generic import SsdUtil as MainSsdUtil
except ImportError as e:
raise ImportError (str(e) + "- required module not found")

NOT_AVAILABLE = "N/A"

class SsdUtil(MainSsdUtil):
"""Platform-specific SsdUtil class"""

def __init__(self, diskdev):
super(SsdUtil, self).__init__(diskdev)

# If it has no vendor tool to read SSD information,
# ssd_util.py will use generic SSD information
# for vendor SSD information.
if self.vendor_ssd_info == NOT_AVAILABLE:
self.vendor_ssd_info = self.ssd_info

0 comments on commit fd54bca

Please sign in to comment.