Skip to content

[Dash] Fix a typo in yang model#13325

Merged
prsunny merged 1 commit intosonic-net:masterfrom
prsunny:dash_yang_fix
Jan 11, 2023
Merged

[Dash] Fix a typo in yang model#13325
prsunny merged 1 commit intosonic-net:masterfrom
prsunny:dash_yang_fix

Conversation

@prsunny
Copy link
Copy Markdown
Contributor

@prsunny prsunny commented Jan 10, 2023

Why I did it

Fix a typo in yang

How I did it

How to verify it

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

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

@qiluo-msft qiluo-msft requested a review from ganglyu January 10, 2023 23:49

leaf vnet {
when "((current()/../action_type = 'vnet') or (current()/../action_type = 'vnet-direct'))";
when "((current()/../action_type = 'vnet') or (current()/../action_type = 'vnet_direct'))";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would you please add unit test for this action_type?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

sure, will add. i would like to unblock the issue first as this is a typo fix.

when "((current()/../action_type = 'vnet') or (current()/../action_type = 'vnet-direct'))";
description "Overlay IP to use for mapping lookup, if routing_type is vnet-direct";
when "((current()/../action_type = 'vnet') or (current()/../action_type = 'vnet_direct'))";
description "Overlay IP to use for mapping lookup, if routing_type is vnet_direct";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

action_type or routing_type?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

action_type points to a routing_type, so it is used interchangeably.

@prsunny prsunny merged commit 21e507e into sonic-net:master Jan 11, 2023
@prsunny prsunny deleted the dash_yang_fix branch January 11, 2023 19:24
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.

Error message about "vnet-direct" in yang model observed in "config interface breakout" and "sonic-package-manager list"

3 participants