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

[Yang Models] Add Yang Model and tests for VNET_ROUTE_TUNNEL table #21814

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

miatttao
Copy link

Why I did it

Added YANG model and tests for VNET_ROUTE_TUNNEL table to provide schema validation and testing capabilities for VNET route tunnel configurations.

Work item tracking
  • Microsoft ADO (number only):

How I did it

  • Created new YANG model (sonic-vnet-route-tunnel-vxlan.yang) defining the VNET_ROUTE_TUNNEL table schema
  • Added comprehensive test cases covering both valid and invalid configurations
  • Implemented validation for:
    • Mandatory endpoint field
    • MAC address format
    • VXLAN ID range
    • Name format (vnet_name:prefix)
    • Reference integrity with VXLAN configurations

How to verify it

  1. Review the YANG model against the config_db schema
  2. cd src/sonic-yang-models && python3 setup.py test

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/doc/Configuration.md/VNET_ROUTE_TUNNEL

A picture of a cute animal (not mandatory but encouraged)

@miatttao miatttao requested a review from qiluo-msft as a code owner February 20, 2025 22:02
Copy link

linux-foundation-easycla bot commented Feb 20, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@miatttao miatttao changed the title [Yang Models] Add Young Model and tests for VNET_ROUTE_TUNNEL table [Yang Models] Add YangModel and tests for VNET_ROUTE_TUNNEL table Feb 21, 2025
@miatttao miatttao changed the title [Yang Models] Add YangModel and tests for VNET_ROUTE_TUNNEL table [Yang Models] Add Yang Model and tests for VNET_ROUTE_TUNNEL table Feb 21, 2025
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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