Skip to content

[yang]: Update yang models to support 'cluster'#9806

Merged
ganglyu merged 3 commits intosonic-net:masterfrom
ganglyu:metadata_cluster
Jan 26, 2022
Merged

[yang]: Update yang models to support 'cluster'#9806
ganglyu merged 3 commits intosonic-net:masterfrom
ganglyu:metadata_cluster

Conversation

@ganglyu
Copy link
Contributor

@ganglyu ganglyu commented Jan 20, 2022

Signed-off-by: Gang Lv ganglv@microsoft.com

Why I did it

Minigraph parser added a new field 'cluster' to device_metadata, and then yang validation is blocked.

How I did it

Add 'cluster' to device_metadata yang models.

How to verify it

Run UT for sonc-yang-models.
Use minigraph parser to generate ConfigDB schema and run yang validation.

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

Fix #9699

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

Signed-off-by: Gang Lv ganglv@microsoft.com
@ganglyu ganglyu added sonic-cfggen SONiC Configuration Generator Tool YANG YANG model related changes labels Jan 20, 2022
Signed-off-by: Gang Lv ganglv@microsoft.com
qiluo-msft
qiluo-msft previously approved these changes Jan 20, 2022
}

leaf cluster {
type string;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add a description, what does this field contain? when is it used?

Copy link
Contributor

Choose a reason for hiding this comment

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

A cluster is a set of inter-connected computers or hosts. The switches that sits in front belongs to the cluster.
This is a general Networking terminology. -- Wikipedia

Description: The switch is a member of this cluster.

Signed-off-by: Gang Lv ganglv@microsoft.com
@ganglyu
Copy link
Contributor Author

ganglyu commented Jan 25, 2022

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ganglyu
Copy link
Contributor Author

ganglyu commented Jan 25, 2022

@venkatmahalingam could you please review again?

@ganglyu ganglyu merged commit a04da04 into sonic-net:master Jan 26, 2022
@ganglyu ganglyu added the Request for 202111 Branch For PRs being requested for 202111 branch label Apr 14, 2022
@judyjoseph
Copy link
Contributor

There is merge conflict in 202111, please raise a separate PR

@judyjoseph judyjoseph removed the Request for 202111 Branch For PRs being requested for 202111 branch label Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sonic-cfggen SONiC Configuration Generator Tool YANG YANG model related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[yang-models] device_metadata validation issue

5 participants