-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix show platform pcieinfo fail message
- Loading branch information
Jostar Yang
committed
Jul 14, 2022
1 parent
56077a2
commit f19d8a7
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
device/accton/x86_64-accton_as5835_54x-r0/sonic_platform/pcie.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
############################################################################# | ||
# Edgecore | ||
# | ||
# Module contains an implementation of SONiC Platform Base API and | ||
# provides the fan status which are available in the platform | ||
# Base PCIe class | ||
############################################################################# | ||
|
||
import logging | ||
|
||
|
||
try: | ||
from sonic_platform.component import Component | ||
from sonic_platform_base.sonic_pcie.pcie_common import PcieUtil | ||
except ImportError as e: | ||
raise ImportError(str(e) + "- required module not found") | ||
|
||
|
||
class Pcie(PcieUtil): | ||
"""Edgecore Platform-specific PCIe class""" | ||
|
||
def __init__(self, platform_path): | ||
PcieUtil.__init__(self, platform_path) |