[202012][cherry-pick] Define SYSTEM_DEFAULTS
table to control tunnel_qos_remap
#10930
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: bingwang [email protected]
Why I did it
This PR is to cherry-pick PR#10877 into
202012
branch after resolving conflicts.This PR is to define a new table
SYSTEM_DEFAULTS
to turn on/off new features in SONiC.Currently, only the flag to turn on/off
tunnel_qos_remap
is in the new table.HLD sonic-net/SONiC#982
How I did it
minigraph.xml
minigrapg.py
to parse the new section, and write intoconfig_db
.TunnelQosRemapEnabled=False
. Otherwiseminigraph.py
will try to parse new fields inminigraph.xml
, and write the parsed value intoconfig_db
.The extra values for tunnel qos remapping are as below.
Changes for the templates will be raised in another PR.
How to verify it
Verified by adding new UT cases.
Which release branch to backport (provide reason below if selected)
Description for the changelog
Define
SYSTEM_DEFAULTS
table to control tunnel_qos_remap.Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)