Setting VxLAN decap TTL mode to pipe in configs generated from minigraphs
#24976
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.
Why I did it
To ensure that by default, the VxLAN decap TTL mode is set to
pipemodel in configs generated from minigraphs (for some switch types).Work item tracking
How I did it
Modified
minigraph.pyso that when theResourceTypein minigraph containsAppliance, thettl_modefor the generatedVXLAN_TUNNELtable is set topipe.How to verify it
Run
test_cfggen.py::TestCfgGen::test_minigraph_default_vxlan. This test has been modified accroding to the new changes.Which release branch to backport (provide reason below if selected)
The YANG model and SWSS changes are already merged for both master and 202511:
YANG model: #24657
SWSS: sonic-net/sonic-swss#3963
Tested branch (Please provide the tested image version)
Description for the changelog
Setting VxLAN decap TTL mode to
pipein configs generated from minigraphs.Link to config_db schema for YANG module changes
https://github.com/sonic-net/sonic-buildimage/blob/master/src/sonic-yang-models/doc/Configuration.md#vxlan