Skip to content

Commit

Permalink
Add pcie.py to fix show pcieinfo fail log
Browse files Browse the repository at this point in the history
  • Loading branch information
Jostar Yang committed Jul 14, 2022
1 parent 0bde3d7 commit ca3c39a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions device/accton/x86_64-accton_as7326_56x-r0/sonic_platform/pcie.py
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)

0 comments on commit ca3c39a

Please sign in to comment.