sonic-utilities
sonic-utilities copied to clipboard
Add config power enable/disable command
What I did
High-speed modules nowadays use a significant amount of power, and having the ability to control each port's optical power enables the disabling of power to ports that are not in use, thus helping to reduce overall power consumption. This feature can also assist in recovering the link in the following scenarios without the need for a physical reseat or OIR.
Issue with optics power ON sequencing (ie. AOI 40G PLR4)
A buggy optic (rendering other ports / optics inaccessible)
Link goes down following a reboot
Link CRC error
Port flaps
An optic entering into a ghost debug mode (optics vendor specific) on one platform but same optic has no issue on another platform
How I did it
Add new config interface command
config interface transceiver power EthernetXX disable config interface transceiver power EthernetXX enable
How to verify it
HW team help probe the power pin and confirmed it to be disabled and enabled