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] Add valid v6 address to sonic-dhcp-sever.yang #18690

Merged
merged 2 commits into from
May 8, 2024

Conversation

wen587
Copy link
Contributor

@wen587 wen587 commented Apr 16, 2024

Why I did it

The PR is to allow v6 address in DHCP_SERVER table which was generated from PROD minigraph. This is to pass the YANG validation.

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

How I did it

Replace ipv4-address with ip-address which is a union of ipv4-address nad ipv6-address

How to verify it

Unit 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

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

@@ -7,7 +7,7 @@
},
"DHCP_SERVER": {
"192.0.0.8": {},
"192.0.0.8": {}
Copy link
Collaborator

@qiluo-msft qiluo-msft Apr 20, 2024

Choose a reason for hiding this comment

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

Do not delete old test data. I believe it is intentionally duplicating above item, and it is a corner case to test. #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.

This is added in sonic-dhcp_server.yang PR: #12175
It should not be related to corner case since the build has passed.

@qiluo-msft qiluo-msft requested a review from Blueve April 20, 2024 00:14
@wen587 wen587 requested a review from qiluo-msft April 22, 2024 23:49
@qiluo-msft qiluo-msft merged commit d07a83e into sonic-net:master May 8, 2024
19 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request May 9, 2024
#### Why I did it
The PR is to allow v6 address in DHCP_SERVER table which was generated from PROD minigraph. This is to pass the YANG validation.

#### How I did it
Replace ipv4-address with ip-address which is a union of ipv4-address nad ipv6-address
#### How to verify it
Unit test
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202305: #18920

mssonicbld pushed a commit that referenced this pull request May 11, 2024
#### Why I did it
The PR is to allow v6 address in DHCP_SERVER table which was generated from PROD minigraph. This is to pass the YANG validation.

#### How I did it
Replace ipv4-address with ip-address which is a union of ipv4-address nad ipv6-address
#### How to verify it
Unit test
@yaqiangz
Copy link
Contributor

@yxieca could you please help to approve this backport to 202311?

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request May 15, 2024
#### Why I did it
The PR is to allow v6 address in DHCP_SERVER table which was generated from PROD minigraph. This is to pass the YANG validation.

#### How I did it
Replace ipv4-address with ip-address which is a union of ipv4-address nad ipv6-address
#### How to verify it
Unit test
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #18974

mssonicbld pushed a commit that referenced this pull request May 15, 2024
#### Why I did it
The PR is to allow v6 address in DHCP_SERVER table which was generated from PROD minigraph. This is to pass the YANG validation.

#### How I did it
Replace ipv4-address with ip-address which is a union of ipv4-address nad ipv6-address
#### How to verify it
Unit test
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