Commit 573717a
authored
[Credo][Ycable] Fix Credo firmware download API download_firmware flag (#269)
Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
Due to PR #222
the download_firmware_status variable of download_firmware API was not cleaned up, due to which higher layer
could sometimes see wrong values of firmware version.
This PR addresses this issue.
After calling a firmware download and not changing this variable
admin@sonic:~$ show mux firmware version Ethernet0
{
"version_nic_active": "N/A",
"version_nic_inactive": "N/A",
"version_nic_next": "N/A",
"version_peer_active": "N/A",
"version_peer_inactive": "N/A",
"version_peer_next": "N/A",
"version_self_active": "N/A",
"version_self_inactive": "N/A",
"version_self_next": "N/A"
}
after the change
admin@sonic:~$ show mux firmware version Ethernet0
<versionX>
{
"version_nic_active": "1.0MS",
"version_nic_inactive": "1.1MS",
"version_nic_next": "1.0MS",
"version_peer_active": "1.0MS",
"version_peer_inactive": "1.1MS",
"version_peer_next": "1.0MS",
"version_self_active": "1.0MS",
"version_self_inactive": "1.1MS",
"version_self_next": "1.0MS"
}
Description
Motivation and Context
How Has This Been Tested?
Tested on an Arista Device.1 parent a844f18 commit 573717a
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1534 | 1534 | | |
1535 | 1535 | | |
1536 | 1536 | | |
| 1537 | + | |
| 1538 | + | |
1537 | 1539 | | |
1538 | 1540 | | |
1539 | 1541 | | |
| |||
0 commit comments