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

Preventing dynamic generation of BUFFER_PROFILE and BUFFER_PG entries in CONFIG_DB #3418

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

Conversation

mramezani95
Copy link
Contributor

What I did
Prevented buffermgrd from dynamically generating lossless BUFFER_PROFILE and BUFFER_PG entries based on port speeds and cable lengths that are configured on the switch.

Why I did it
The automatic generation of these entries can create an invalid config diff between the golden config and the running config.

How I verified it
Starting with a config_db.json file that did not contain pg_lossless_* buffer profiles, I verified that after reloading the configuration with sudo config reload -y, these buffer profiles and their corresponding entries in the BUFFER_PG table were not automatically created in CONFIG_DB. Also, verified the same thing after doing a warm-reboot.

Details if related
The dynamically-generated buffer profiles have the format pg_lossless_<port_speed>_<cable_length>_profile. This PR prevents their creation and also the creation of corresponding BUFFER_PG entries.

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.

1 participant