Skip to content

[sonic-cfggen]: Feature should use 'state' to replace 'status'#9796

Merged
ganglyu merged 1 commit intosonic-net:masterfrom
ganglyu:feature_state
Jan 20, 2022
Merged

[sonic-cfggen]: Feature should use 'state' to replace 'status'#9796
ganglyu merged 1 commit intosonic-net:masterfrom
ganglyu:feature_state

Conversation

@ganglyu
Copy link
Copy Markdown
Contributor

@ganglyu ganglyu commented Jan 19, 2022

Signed-off-by: Gang Lv [email protected]

Why I did it

ConfigDB schema generated by minigraph parser can't pass yang validation.

How I did it

Modify minigraph.py, and use 'state' to replace 'status'.

How to verify it

Run UT for sonic-config-engine.
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 #9551

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

@ganglyu ganglyu added sonic-cfggen SONiC Configuration Generator Tool YANG YANG model related changes labels Jan 19, 2022
@ganglyu ganglyu requested a review from lguohan as a code owner January 19, 2022 08:20
@ganglyu ganglyu merged commit d3c39d5 into sonic-net:master Jan 20, 2022
@ganglyu ganglyu added the Request for 202111 Branch For PRs being requested for 202111 branch label Jan 20, 2022
judyjoseph pushed a commit that referenced this pull request Jan 23, 2022
Why I did it
ConfigDB schema generated by minigraph parser can't pass yang validation.

How I did it
Modify minigraph.py, and use 'state' to replace 'status'.

How to verify it
Run UT for sonic-config-engine.
Use minigraph parser to generate ConfigDB schema, and run yang validation.

Signed-off-by: Gang Lv [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Included in 202111 Branch Request for 202111 Branch For PRs being requested for 202111 branch 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] feature validation issue

4 participants