Skip to content

Conversation

@carycelestica
Copy link

update ssdutil and it contain ssdvendors module , main.py and ssdutil.py

modify the show/main.py to support command "show platform ssd "
`root@sonic:~# show platform ssd
Usage: show platform ssd [OPTIONS] COMMAND [ARGS]...

Show ssd related information

Options:
-?, -h, --help Show this message and exit.

Commands:
badblock Show SSD Badblock
capacity Show SSD Capacity
device Show SSD Device Model
firmware Show SSD Firmware Info
health Show SSD Health
pecycle Show SSD P/E Cycle
remaintime Show SSD Remaining Time
serialnum Show SSD Serial Number
temp Show SSD Temperature
root@sonic:~#
`

modify the setup.py to compile the ssdutil

ssdutil/main.py Outdated
except AttributeError, e:
log_error("Failed to instantiate '%s' class: %s" % ("InnoDisk", str(e)), True)
return -2
elif "SanDisk" in dvModel:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Cary,here is for others to extend.Currently SanDisk is just for our test right now.Not the official release code.Please delete this part and detail the comment that other vendors can extend here.

@sandycelestica
Copy link

Pass

@grantshao
Copy link

pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants