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

Enable PG drop counters by default, set default values only on the first start #10935

Merged
merged 2 commits into from
Jun 22, 2022

Conversation

ayurkiv-nvda
Copy link
Contributor

Backport form master
Appropriate PR on master: #7735
Appropriate PR on master #6444

Why I did it

PG drop counters should be enabled by default (merge from master)
After "config reload" or "docker swss restart" all counters were enabled even if they were disabled before

How I did it

1)Add PG drop counter enable option to dockers/docker-orchagent/enable_counters.py
2) Check if entry already exist before set default values

How to verify it

  1. install image and run counterpoll show CLI command and then you will see PG_STAT_DROP enabled

  2. Disable few counters

counterpoll pg-drop disable
counterpoll port disable
  1. Save and reload
config save
config reload
  1. Check enable status

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)

@neethajohn neethajohn requested review from yxieca and abdosi May 26, 2022 20:59
@neethajohn
Copy link
Contributor

@yxieca, @abdosi since there is a default behavior change w.r.t to the FLEX_COUNTER_TABLE.

@liat-grozovik
Copy link
Collaborator

@neethajohn , @yxieca can you please signoff?

@neethajohn neethajohn merged commit 38eef91 into sonic-net:201911 Jun 22, 2022
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.

5 participants