Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix counters of portstat are abnormal after config reload #1262

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Aster-ZhangBen
Copy link

Signed-off-by: Aster-zhangben zhangben@asterfusion.com

- What I did
Fix packets&bytes counters of 'portstat' or 'show interfaces counters' are huge numbers or negative numbers after config reload.

- How I did it
Delete the data file of 'portstat' when 'config reload' is executed. The path of 'portstat' data file is '/tmp/portstat-1000'

- How to verify it
step1: Injection flow into the port of DUT before reload
step2: Execute 'portstat -c' and then 'config reload'
step3: After restarting, check whether the 'portstat' data file still exists and whether the packets&bytes counters display is normal.

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

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

Signed-off-by: Aster-zhangben <zhangben@asterfusion.com>
@tengfei-astfs
Copy link

@stcheng @lguohan Please review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants