Skip to content

[sonic-cfggen]: Fix missing vlan interface#9639

Merged
lguohan merged 1 commit intosonic-net:masterfrom
ganglyu:fix_vlan_interface
Jan 5, 2022
Merged

[sonic-cfggen]: Fix missing vlan interface#9639
lguohan merged 1 commit intosonic-net:masterfrom
ganglyu:fix_vlan_interface

Conversation

@ganglyu
Copy link
Copy Markdown
Contributor

@ganglyu ganglyu commented Dec 23, 2021

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

Why I did it

Config db schema generated by minigraph can’t pass yang validation, there's no Vlan31 in 'VLAN' table.

How I did it

Update test minigraph to add vlan interface.

How to verify it

Build sonic-yang-models.
Run command 'sonic-cfggen -m tests/fg-ecmp-sample-minigraph.xml -p tests/mellanox-sample-port-config.ini --print-data', and run yang validation.

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

Fix #9581

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

Signed-off-by: Gang Lv ganglv@microsoft.com
@ganglyu ganglyu requested a review from qiluo-msft December 23, 2021 05:40
@ganglyu ganglyu requested a review from lguohan as a code owner December 23, 2021 05:40
@ganglyu
Copy link
Copy Markdown
Contributor Author

ganglyu commented Dec 24, 2021

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft
Copy link
Copy Markdown
Collaborator

@kktheballer Could you help review?

@lguohan lguohan merged commit 5efebad into sonic-net:master Jan 5, 2022
@ganglyu ganglyu added the Request for 202111 Branch For PRs being requested for 202111 branch label Jan 6, 2022
judyjoseph pushed a commit that referenced this pull request Jan 9, 2022
Why I did it
Config db schema generated by minigraph can’t pass yang validation, there's no Vlan31 in 'VLAN' table.

How I did it
Update test minigraph to add vlan interface.

How to verify it
Build sonic-yang-models.
Run command 'sonic-cfggen -m tests/fg-ecmp-sample-minigraph.xml -p tests/mellanox-sample-port-config.ini --print-data', and run yang validation.

Signed-off-by: Gang Lv ganglv@microsoft.com
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[yang-models] vlan validation issue

4 participants