sonic-buildimage/device/arista/x86_64-arista_common/plugins/ssd_util.py
Samuel Angebault 5ff45c5846
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
2022-09-21 14:56:14 +08:00

6 lines
168 B
Python

# pylint: disable=unused-import
try:
from arista.utils.sonic_ssd import SsdUtil
except ImportError:
from sonic_platform_base.sonic_ssd.ssd_generic import SsdUtil