Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Edge-core][device/accton] Add ssd_util plugin to AS4630-54PE, AS7326-56X, AS771… #11716

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
24 changes: 24 additions & 0 deletions device/accton/x86_64-accton_as4630_54pe-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

24 changes: 24 additions & 0 deletions device/accton/x86_64-accton_as4630_54te-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

24 changes: 24 additions & 0 deletions device/accton/x86_64-accton_as5712_54x-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

24 changes: 24 additions & 0 deletions device/accton/x86_64-accton_as5812_54t-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

24 changes: 24 additions & 0 deletions device/accton/x86_64-accton_as5812_54x-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

24 changes: 24 additions & 0 deletions device/accton/x86_64-accton_as5835_54t-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

24 changes: 24 additions & 0 deletions device/accton/x86_64-accton_as5835_54x-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

24 changes: 24 additions & 0 deletions device/accton/x86_64-accton_as6712_32x-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

24 changes: 24 additions & 0 deletions device/accton/x86_64-accton_as7116_54x-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

24 changes: 24 additions & 0 deletions device/accton/x86_64-accton_as7212_54x-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

24 changes: 24 additions & 0 deletions device/accton/x86_64-accton_as7312_54x-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

24 changes: 24 additions & 0 deletions device/accton/x86_64-accton_as7315_27xb-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

24 changes: 24 additions & 0 deletions device/accton/x86_64-accton_as7326_56x-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

24 changes: 24 additions & 0 deletions device/accton/x86_64-accton_as7512_32x-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

24 changes: 24 additions & 0 deletions device/accton/x86_64-accton_as7712_32x-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

24 changes: 24 additions & 0 deletions device/accton/x86_64-accton_as7716_32x-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

Loading
Loading