[as5835-54x] Add to support API2.0#6480
Merged
jleveque merged 13 commits intosonic-net:masterfrom May 28, 2021
Merged
Conversation
|
This pull request introduces 2 alerts when merging cbf1975 into 9b2bc88 - view on LGTM.com new alerts:
|
jleveque
suggested changes
Jan 21, 2021
device/accton/x86_64-accton_as5835_54x-r0/sonic_platform/__init__.py
Outdated
Show resolved
Hide resolved
device/accton/x86_64-accton_as5835_54x-r0/sonic_platform/chassis.py
Outdated
Show resolved
Hide resolved
device/accton/x86_64-accton_as5835_54x-r0/sonic_platform/component.py
Outdated
Show resolved
Hide resolved
device/accton/x86_64-accton_as5835_54x-r0/sonic_platform/eeprom.py
Outdated
Show resolved
Hide resolved
device/accton/x86_64-accton_as5835_54x-r0/sonic_platform/component.py
Outdated
Show resolved
Hide resolved
device/accton/x86_64-accton_as5835_54x-r0/sonic_platform/sfp.py
Outdated
Show resolved
Hide resolved
device/accton/x86_64-accton_as5835_54x-r0/sonic_platform/thermal.py
Outdated
Show resolved
Hide resolved
device/accton/x86_64-accton_as5835_54x-r0/sonic_platform/thermal.py
Outdated
Show resolved
Hide resolved
platform/broadcom/sonic-platform-modules-accton/as5835-54x/utils/accton_as5835_54x_util.py
Outdated
Show resolved
Hide resolved
jleveque
suggested changes
Feb 19, 2021
Contributor
jleveque
left a comment
There was a problem hiding this comment.
Please fix merge conflict
jleveque
approved these changes
May 28, 2021
carl-nokia
pushed a commit
to carl-nokia/sonic-buildimage
that referenced
this pull request
Aug 7, 2021
Add platform API 2.0 support for as5835-54x platform
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
- Why I did it
Support API2.0
- How I did it
Implement API2.0 needed code
- How to verify it
Test each API.
root@sonic:/home/admin# ./test_as5835-54x_api2.py
DEBUG:root:Test Chassis
DEBUG:root:get_name=Accton-AS5835-54X
DEBUG:root:get_base_mac=80:A2:35:D2:46:B5
DEBUG:root:get_serial_number=583554X1922008
DEBUG:root:get_system_eeprom_info={'0xFE': '0x54E5C8B0', '0x28': 'x86_64-accton_as5835_54x-r0', '0x29': '2019.08.00.01', '0x22': 'FP1ZZ56540B7A', '0x23': '583554X1922008', '0x21': '5835-54X-O-AC-F', '0x27': 'R0BA', '0x24': '80:A2:35:D2:46:B5', '0x25': '06/21/2019', '0x2B': 'Accton', '0x2C': 'TW', '0x2A': '256', '0x2D': 'Edgecore', '0x2E': 'b.b.1.0'}
DEBUG:root:get_reboot_cause=('REBOOT_CAUSE_NON_HARDWARE', "User issued 'reboot' command [User: admin, Time: Wed 13 Jan 2021 04:50:43 PM UTC]")
DEBUG:root:
Test Component
DEBUG:root:get_num_components=4
DEBUG:root:get_name=CPLD1
DEBUG:root:get_name=CPLD2
DEBUG:root:get_name=CPLD3
DEBUG:root:get_name=BIOS
DEBUG:root:get_firmware_version0 =2
DEBUG:root:get_firmware_version1 =2
DEBUG:root:get_firmware_version2 =2
DEBUG:root:get_firmware_version3 =AS5835 V37 20190117
DEBUG:root:get_description=CPLD 1
DEBUG:root:get_description=CPLD 2
DEBUG:root:get_description=CPLD 3
DEBUG:root:get_description=Basic Input/Output System
DEBUG:root:
Fan test
DEBUG:root:fan-1, presence=1
DEBUG:root:fan 1 direction=exhaust
DEBUG:root:fan 1 speed()=40
DEBUG:root:set speed to fan-1
DEBUG:root:fan-1 speed()=50
DEBUG:root:fan-2, presence=1
DEBUG:root:fan 2 direction=exhaust
DEBUG:root:fan 2 speed()=50
DEBUG:root:set speed to fan-1
DEBUG:root:fan-1 speed()=50
DEBUG:root:fan-3, presence=1
DEBUG:root:fan 3 direction=intake
DEBUG:root:fan 3 speed()=50
DEBUG:root:set speed to fan-1
DEBUG:root:fan-1 speed()=50
DEBUG:root:fan-4, presence=1
DEBUG:root:fan 4 direction=intake
DEBUG:root:fan 4 speed()=50
DEBUG:root:set speed to fan-1
DEBUG:root:fan-1 speed()=50
DEBUG:root:fan-5, presence=1
DEBUG:root:fan 5 direction=intake
DEBUG:root:fan 5 speed()=50
DEBUG:root:set speed to fan-1
DEBUG:root:fan-1 speed()=50
DEBUG:root:fan-6, presence=1
DEBUG:root:fan 6 direction=intake
DEBUG:root:fan 6 speed()=50
DEBUG:root:set speed to fan-1
DEBUG:root:fan-1 speed()=50
DEBUG:root:fan-7, presence=1
DEBUG:root:fan 7 direction=intake
DEBUG:root:fan 7 speed()=50
DEBUG:root:set speed to fan-1
DEBUG:root:fan-1 speed()=40
DEBUG:root:fan-8, presence=1
DEBUG:root:fan 8 direction=intake
DEBUG:root:fan 8 speed()=40
DEBUG:root:set speed to fan-1
DEBUG:root:fan-1 speed()=50
DEBUG:root:fan-9, presence=1
DEBUG:root:fan 9 direction=intake
DEBUG:root:fan 9 speed()=50
DEBUG:root:set speed to fan-1
DEBUG:root:fan-1 speed()=50
DEBUG:root:fan-10, presence=1
DEBUG:root:fan 10 direction=intake
DEBUG:root:fan 10 speed()=50
DEBUG:root:set speed to fan-1
DEBUG:root:fan-1 speed()=50
DEBUG:root:
PSU test
DEBUG:root:PSU-1
DEBUG:root:presence=1
DEBUG:root:get_name=PSU-1
DEBUG:root:get_powergood=1
DEBUG:root:get_voltage=11.86
DEBUG:root:get_current=7.17
DEBUG:root:get_power=81.00
DEBUG:root:get_temperature=31.000
DEBUG:root:get_voltage_high_threshold=1472.00
DEBUG:root:get_voltage_low_threshold=-768.00
DEBUG:root:psu:get_num_fans=1
DEBUG:root:psu:get_fan().get_presence=1
DEBUG:root:dir_str=/sys/bus/i2c/devices/11-0058/psu_fan_dir, val=F2B
DEBUG:root:psu:get_fan().get_direction=exhaust
DEBUG:root:psu:get_fan().get_speed=12
DEBUG:root:psu:get_num_thermals()=0
DEBUG:root:psu:get_temperature=31.000
DEBUG:root:PSU-2
DEBUG:root:presence=0
DEBUG:root:get_name=PSU-2
DEBUG:root:get_powergood=0
DEBUG:root:get_voltage=0.00
DEBUG:root:get_current=0.00
DEBUG:root:get_power=0.00
DEBUG:root:get_temperature=0.000
DEBUG:root:get_voltage_high_threshold=0.00
DEBUG:root:get_voltage_low_threshold=0.00
DEBUG:root:psu:get_num_fans=1
DEBUG:root:psu:get_fan().get_presence=1
DEBUG:root:dir_str=/sys/bus/i2c/devices/12-005b/psu_fan_dir, val=
DEBUG:root:psu:get_fan().get_direction=intake
DEBUG:root:psu:get_fan().get_speed=0
DEBUG:root:psu:get_num_thermals()=0
DEBUG:root:psu:get_temperature=0.000
DEBUG:root:
Thermal test
DEBUG:root:Thermal-1
DEBUG:root:get_temperature=32.500
DEBUG:root:high_threshold=85.000
DEBUG:root:get name=Temp sensor 1
DEBUG:root:get_presence=True
DEBUG:root:get_status=True
DEBUG:root:Thermal-2
DEBUG:root:get_temperature=25.500
DEBUG:root:high_threshold=84.000
DEBUG:root:get name=Temp sensor 2
DEBUG:root:get_presence=True
DEBUG:root:get_status=True
DEBUG:root:Thermal-3
DEBUG:root:get_temperature=29.000
DEBUG:root:high_threshold=83.000
DEBUG:root:get name=Temp sensor 3
DEBUG:root:get_presence=True
DEBUG:root:get_status=True
DEBUG:root:Thermal-4
DEBUG:root:get_temperature=27.000
DEBUG:root:high_threshold=82.000
DEBUG:root:get name=Temp sensor 4
DEBUG:root:get_presence=True
DEBUG:root:get_status=True
DEBUG:root:
SFP test
DEBUG:root:Port-1
DEBUG:root:platform_chassis.get_serial=U31649000020
DEBUG:root:get_model()=M0OEC5402T04Z
DEBUG:root:get_name()=Ethernet0
DEBUG:root:get_rx_los=0
DEBUG:root:get_tx_fault()=0
DEBUG:root:get_tx_disable()=1
DEBUG:root:get_lp_mode=0
DEBUG:root:get_tx_disable_channel()=0x0
DEBUG:root:Port-12
DEBUG:root:platform_chassis.get_serial=U31649000020
DEBUG:root:get_model()=M0OEC5402T04Z
DEBUG:root:get_name()=Ethernet11
DEBUG:root:get_rx_los=0
DEBUG:root:get_tx_fault()=0
DEBUG:root:get_tx_disable()=1
DEBUG:root:get_lp_mode=0
DEBUG:root:get_tx_disable_channel()=0x0
- Which release branch to backport (provide reason below if selected)
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)