[portstat] show BPS, PPS, UTIL rates (based on speed) w/o previous clear#702
[portstat] show BPS, PPS, UTIL rates (based on speed) w/o previous clear#702mykolaf wants to merge 1 commit intosonic-net:201811from
Conversation
Signed-off-by: Mykola Faryma <[email protected]>
|
retest this please |
|
the label is enhancement, not bug fix. |
This comment has been minimized.
This comment has been minimized.
|
the only test which is falling is. @yxieca can you please take a look? maybe you have an idea why it is failing as it seems not related to this PR Test Result (1 failure / +1) test_warm_reboot.TestWarmReboot.test_system_warmreboot_neighbor_syncup |
yxieca
left a comment
There was a problem hiding this comment.
Using 'uptime' to calculate speed is unacceptable.
Not all platforms under all reboot types will clear counters when uptime == 0. This change is asking for high severity level warnings in production.
|
Also, actions like config reload, syncd cold restart, will cause counter to be cleared when uptime != 0. I don't think we should present estimate that could be wrong to the end user in cli. It is ok to calculate this way and used in a test. But that should be done in the test code. |
|
As pointed above this solution is not acceptable. I don't see any reason to keep this code open and mistakenly used/merged this closing it. |
Signed-off-by: Mykola Faryma [email protected]
- What I did
Backported changes from #508 and #563 .
Now packet and byte rates and correct(based on speed) utilization is available on CLI without the need to perform clear of counters.
- How I did it
- How to verify it
- Previous command output (if the output of a command-line utility has changed)
Notice the N/A
- New command output (if the output of a command-line utility has changed)
-->