sonic-utilities icon indicating copy to clipboard operation
sonic-utilities copied to clipboard

[sfputil] fix firmware download progress not show 100%

Open rqx110 opened this issue 1 year ago • 1 comments

What I did

resolve #3266

correct the progress value disaplay when file is download complete

How I did it

How to verify it

run the command, and veriry the output

Previous command output (if the output of a command-line utility has changed)

root@sonic:/tmp# sfputil firmware download Ethernet0 /var/tmp/xxxx.bin
CDB: Starting firmware download
Platform doesn't implement optoe write max change. Skipping value increase.
Downloading ...  [###################################-]   99%  00:00:00
Platform doesn't implement optoe write max change. Skipping value restore!
CDB: firmware download complete

New command output (if the output of a command-line utility has changed)

root@sonic:/tmp# sfputil firmware download Ethernet0 /var/tmp/xxxx.bin
CDB: Starting firmware download
Platform doesn't implement optoe write max change. Skipping value increase.
Downloading ...  [####################################]  100%
Platform doesn't implement optoe write max change. Skipping value restore!
CDB: firmware download complete

rqx110 avatar Apr 12 '24 06:04 rqx110

Can some one review this? @prgeor

rqx110 avatar Sep 14 '24 02:09 rqx110