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][Bugfix] Vxlan tunnel yang model to support dest_ip and name length. #18966

Merged

Conversation

siqbal1986
Copy link
Contributor

@siqbal1986 siqbal1986 commented May 14, 2024

Fixed the Vxlan tunnel yang model to add support for

  1. Tunnel name length restriction has been removed
  2. dst_ip field.

Why I did it

The yand modle was misisng an element and supported tunnel anme was very small.

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

How I did it

How to verify it

run yang model tests

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

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

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

1) Tunnel name of length 30 characters.
2) dst_ip field.
@@ -55,13 +55,17 @@ module sonic-vxlan {
name should have a max of 10 chars */

type string {
length 1..10;
length 1..30;
Copy link
Collaborator

@qiluo-msft qiluo-msft May 16, 2024

Choose a reason for hiding this comment

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

30

How do you figure out the maximal value? #Closed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I chose a random sufficiently large number to accommodate the name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

linux interface same is 15 character so we cant use that.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you keep the lower limit 1?

@lguohan lguohan added the YANG YANG model related changes label May 17, 2024
@siqbal1986
Copy link
Contributor Author

@qiluo-msft if you are ok with with the length then please merge this.

@qiluo-msft qiluo-msft merged commit d6ccd2d into sonic-net:master May 23, 2024
20 checks passed
@wen587
Copy link
Contributor

wen587 commented Jun 19, 2024

Hi @yxieca , could you help merge to 202311?

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Jun 20, 2024
…ngth. (sonic-net#18966)

Fixed  the Vxlan tunnel yang model to add support for
1) Tunnel name length restriction has been removed
2) dst_ip field.

#### Why I did it
The yand modle was misisng an element and supported tunnel anme was very small.
#### How to verify it
run yang model tests
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #19364

mssonicbld pushed a commit that referenced this pull request Jun 21, 2024
…ngth. (#18966)

Fixed  the Vxlan tunnel yang model to add support for
1) Tunnel name length restriction has been removed
2) dst_ip field.

#### Why I did it
The yand modle was misisng an element and supported tunnel anme was very small.
#### How to verify it
run yang model tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants