Implement ssd_util plugin for Arista products (#11981)

Why I did it
Some Arista products do not have an SSD but use an eMMC instead.
The SsdUtil plugin is therefore extended to support both.

How I did it
Implemented ssd_util.py platform plugin loaded by ssdutil.
This plugin fallback to the default SONiC implementation if the arista one can't be found.

How to verify it
Run show platform ssdhealth on a product with an eMMC
This commit is contained in:
Samuel Angebault 2022-09-21 08:56:14 +02:00 committed by GitHub
parent 63c14d2e9e
commit 5ff45c5846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,5 @@
# pylint: disable=unused-import
try:
from arista.utils.sonic_ssd import SsdUtil
except ImportError:
from sonic_platform_base.sonic_ssd.ssd_generic import SsdUtil