Skip to content

"Show interface status" fails with the error in the s5232f platform #8786

@mohanapriya-meganathan

Description

@mohanapriya-meganathan

Description
"show interface status" command fails with the error

Steps to reproduce the issue:
Run the command "sudo show interface status" and observe the results.

Describe the results you received:
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.9/dist-packages/sonic_platform/chassis.py", line 89, in init
self._psu_list = [Psu(i) for i in range(MAX_S5232F_PSU)]
File "/usr/local/lib/python3.9/dist-packages/sonic_platform/chassis.py", line 89, in
self._psu_list = [Psu(i) for i in range(MAX_S5232F_PSU)]
File "/usr/local/lib/python3.9/dist-packages/sonic_platform/psu.py", line 44, in init
self._fan_list.append(Fan(fan_index=self.index, psu_fan=True,
File "/usr/local/lib/python3.9/dist-packages/sonic_platform/fan.py", line 74, in init
self.max_speed = self.max_speed[1] << 8 | self.max_speed[0]
IndexError: list index out of range

Describe the results you expected:
image

**Output of `show version`:**

SONiC Software Version: SONiC.master.287750-29051072a
SONiC OS Version: 11
Distribution: Debian 11.7
Kernel: 5.10.0-18-2-amd64
Build commit: 2905107
Build date: Mon Jun 5 14:14:12 UTC 2023
Built by: AzDevOps@vmss-soni0018HA

Platform: x86_64-dellemc_s5232f_c3538-r0
HwSKU: DellEMC-S5232f-C8D48
ASIC: broadcom
ASIC Count: 1
Serial Number: H6RZZP2
Model Number: 01WJVT
Hardware Revision: N/A
Uptime: 07:50:32 up 2:52, 1 user, load average: 0.53, 0.56, 0.65
Date: Fri 30 Jun 2023 07:50:32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions