Skip to content

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

Merged
neethajohn merged 2 commits intosonic-net:201911from
ayurkiv-nvda:pg_enabled_2019
Jun 22, 2022
Merged

Enable PG drop counters by default, set default values only on the first start#10935
neethajohn merged 2 commits intosonic-net:201911from
ayurkiv-nvda:pg_enabled_2019

Conversation

@ayurkiv-nvda
Copy link
Copy Markdown
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 abdosi and yxieca May 26, 2022 20:59
@neethajohn
Copy link
Copy Markdown
Contributor

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

@liat-grozovik
Copy link
Copy Markdown
Collaborator

@neethajohn , @yxieca can you please signoff?

@neethajohn neethajohn merged commit 38eef91 into sonic-net:201911 Jun 22, 2022
@ayurkiv-nvda ayurkiv-nvda deleted the pg_enabled_2019 branch February 5, 2025 10:43
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