Skip to content

Conversation

@mramezani95
Copy link
Contributor

Why I did it

To ensure that by default, the VxLAN decap TTL mode is set to pipe model in configs generated from minigraphs (for some switch types).

Work item tracking
  • Microsoft ADO (number only): 36139910

How I did it

Modified minigraph.py so that when the ResourceType in minigraph contains Appliance, the ttl_mode for the generated VXLAN_TUNNEL table is set to pipe.

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)

  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

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)

  • [master]

Description for the changelog

Setting VxLAN decap TTL mode to pipe in 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

Copilot AI review requested due to automatic review settings January 6, 2026 00:33
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR configures VxLAN decapsulation TTL mode to pipe in configurations generated from minigraphs for devices with the "Appliance" resource type. This change ensures proper TTL handling for VxLAN tunnels on specific switch types.

Key Changes:

  • Modified VxLAN tunnel configuration generation to include ttl_mode: 'pipe' for appliance-type devices
  • Updated test expectations to validate the new ttl_mode field in generated configurations

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/sonic-config-engine/minigraph.py Added ttl_mode: 'pipe' to VXLAN_TUNNEL configuration in parse_default_vxlan_decap function
src/sonic-config-engine/tests/test_cfggen.py Updated test expectation to include the new ttl_mode field in VXLAN_TUNNEL output

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants