Skip to content

[POC] Remove buffer profile from profile_DB.#2224

Closed
liuh-80 wants to merge 4 commits intosonic-net:masterfrom
liuh-80:dev/liuh/poc-buffer-static-config
Closed

[POC] Remove buffer profile from profile_DB.#2224
liuh-80 wants to merge 4 commits intosonic-net:masterfrom
liuh-80:dev/liuh/poc-buffer-static-config

Conversation

@liuh-80
Copy link
Contributor

@liuh-80 liuh-80 commented Jun 21, 2022

This is a POC PR, not ready for review.
This will be second stage of Config DB Profile support sonic-net/SONiC#989

What I did

How I did it

How to verify it

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)

@liuh-80 liuh-80 changed the title [POC] Import buffer config to static DB when load minigraph [POC] Import buffer config to static config DB when load minigraph Jun 21, 2022
config/main.py Outdated
if not no_dynamic_buffer and asic_type in vendors_supporting_dynamic_buffer:
buffer_template_file = os.path.join(hwsku_path, asic_id_suffix, "buffers_dynamic.json.j2")
buffer_model_updated |= _update_buffer_calculation_model(config_db, "dynamic")
buffer_model_updated |= _update_buffer_calculation_model(static_config_db, "dynamic")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

_update_buffer_calculation_model is not necessary, because it's update device metadata -> buffer_model. will revert this change later.

@linux-foundation-easycla
Copy link

CLA Missing ID CLA Not Signed

@liuh-80 liuh-80 changed the title [POC] Import buffer config to static config DB when load minigraph [POC] Import buffer config to Profile DB when load minigraph. Aug 31, 2022
@liuh-80 liuh-80 changed the title [POC] Import buffer config to Profile DB when load minigraph. [POC] Remove buffer profile from profile_DB. Aug 31, 2022
@liuh-80
Copy link
Contributor Author

liuh-80 commented Oct 14, 2022

Close this PR because another PR include all code: #2344

@liuh-80 liuh-80 closed this Oct 14, 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.

1 participant