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

[202205] Fix device type and add cluster in DEVICE_NEIGHBOR_METADATA yang model #17251

Merged

Conversation

Gfrom2016
Copy link
Contributor

@Gfrom2016 Gfrom2016 commented Nov 21, 2023

Why I did it

This is the cherry-pick PR for #17049.
The current DEVICE_NEIGHBOR_METADATA yang model has two issues that would block GCU operation when it checks if the current config aligns with the YANG model:

  • Missing cluster field in YANG
  • Incomplete set of device type. The device type in YANG model doesn't include all the device type. Work item tracking
Work item tracking
  • Microsoft ADO (number only): 25577813

How I did it

Add cluster field in DEVICE_NEIGHBOR_METADATA YANG model. Change device type to string.
Fix the UT test accordingly.

How to verify it

Build the image and verify the unit tests passed.

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)

sonic-net#17049)

Why I did it
The current DEVICE_NEIGHBOR_METADATA yang model has two issues that would block GCU operation when it checks if the current config aligns with the YANG model:

Missing cluster field in YANG
Incomplete set of device type. The device type in YANG model doesn't include all the device type.
Work item tracking
Microsoft ADO (number only): 25577813
How I did it
Add cluster field in DEVICE_NEIGHBOR_METADATA YANG model.
Change device type to string.
Fix the UT test accordingly.
How to verify it
Build the image and verify the unit tests passed.

Signed-off-by: zitingguo-ms <zitingguo@microsoft.com>
@Gfrom2016 Gfrom2016 changed the title [TEST] Fix device type and add cluster in DEVICE_NEIGHBOR_METADATA yang mode… Fix device type and add cluster in DEVICE_NEIGHBOR_METADATA yang model Nov 28, 2023
@Gfrom2016 Gfrom2016 changed the title Fix device type and add cluster in DEVICE_NEIGHBOR_METADATA yang model [202205] Fix device type and add cluster in DEVICE_NEIGHBOR_METADATA yang model Nov 28, 2023
@Gfrom2016 Gfrom2016 marked this pull request as ready for review November 28, 2023 01:39
@yxieca yxieca merged commit edd0945 into sonic-net:202205 Nov 28, 2023
17 checks passed
@Gfrom2016 Gfrom2016 deleted the fix_device_neighbor_metadata_202205 branch June 17, 2024 05:05
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