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

[counter] Fix issue: non default counters will be delayed forever after fastboot #10413

Merged
merged 2 commits into from
Mar 31, 2022

Conversation

Junchao-Mellanox
Copy link
Collaborator

Why I did it

Fastboot will delay all counters in CONFIG DB, it relies on enable_counters.py to recover the delayed counters. However, enable_counters.py does not recover those non-default counters.

How I did it

For non-default counters, if it is in CONFIG DB, put delay status to false after the waiting.

How to verify it

Manual test

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@Junchao-Mellanox Junchao-Mellanox added Bug 🐛 Request for 202111 Branch For PRs being requested for 202111 branch labels Mar 31, 2022
@Junchao-Mellanox Junchao-Mellanox changed the title [counter] Fix issue: non default counters will be delayed forever [counter] Fix issue: non default counters will be delayed forever after fastboot Mar 31, 2022
Copy link
Contributor

@shlomibitton shlomibitton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@liat-grozovik liat-grozovik merged commit 106fac5 into sonic-net:master Mar 31, 2022
judyjoseph pushed a commit that referenced this pull request Apr 4, 2022
…er fastboot (#10413)

- Why I did it
Fastboot will delay all counters in CONFIG DB, it relies on enable_counters.py to recover the delayed counters. However, enable_counters.py does not recover those non-default counters.

- How I did it
For non-default counters, if it is in CONFIG DB, put delay status to false after the waiting.

- How to verify it
Manual test
@Junchao-Mellanox Junchao-Mellanox deleted the fix-enable-counters branch April 8, 2022 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants