Skip to content

SONiC Yang model for PORTCHANNEL_INTERFACE table#7034

Merged
lguohan merged 7 commits intosonic-net:masterfrom
ArthiSivanantham:sonic_portchannel_interface
Mar 28, 2021
Merged

SONiC Yang model for PORTCHANNEL_INTERFACE table#7034
lguohan merged 7 commits intosonic-net:masterfrom
ArthiSivanantham:sonic_portchannel_interface

Conversation

@ArthiSivanantham
Copy link
Copy Markdown
Contributor

@ArthiSivanantham ArthiSivanantham commented Mar 12, 2021

Signed-off-by: Arthi Sivanantham [email protected]

Why I did it

SONiC YANG model support for PORTCHANNEL_INTERFACE table.

How I did it

Defined PORTCHANNEL_INTERFACE_IPADDR_LIST YANG list based on config-DB schema.

How to verify it

sonic_yang_models package build

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

  • 201811
  • 201911
  • 202006
  • 202012

Description for the changelog

SONiC YANG model support for PORTCHANNEL_INTERFACE table in config DB.

@ghost
Copy link
Copy Markdown

ghost commented Mar 12, 2021

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

❌ ArthiSivanantham sign now
You have signed the CLA already but the status is still pending? Let us recheck it.

@lguohan
Copy link
Copy Markdown
Collaborator

lguohan commented Mar 12, 2021

can you sign cla?

@lguohan lguohan added the YANG YANG model related changes label Mar 12, 2021
Signed-off-by: Arthi Sivanantham <[email protected]>
@ArthiSivanantham ArthiSivanantham force-pushed the sonic_portchannel_interface branch from 57fdddd to cf55354 Compare March 12, 2021 07:31
@ArthiSivanantham
Copy link
Copy Markdown
Contributor Author

can you sign cla?

Done

@ArthiSivanantham ArthiSivanantham force-pushed the sonic_portchannel_interface branch from b712709 to cbdec66 Compare March 17, 2021 00:07
2. Rename IP address list for consistency

Signed-off-by: Arthi Sivanantham <[email protected]>
2. Add negative test case for IP addr assignment on a non existent PortChannel

Signed-off-by: Arthi Sivanantham <[email protected]>
Copy link
Copy Markdown
Member

@praveen-li praveen-li left a comment

Choose a reason for hiding this comment

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

LGTM

"sonic-portchannel:sonic-portchannel": {
"sonic-portchannel:PORTCHANNEL": {
"PORTCHANNEL_LIST": [{
"name": "PortChannel0001"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Better to add admin_status, since it is mandatory. Libyang may throw error about mandatory before leafref and the test case may fail. So better to keep one failure scenario in the test. Thx.

@lguohan
Copy link
Copy Markdown
Collaborator

lguohan commented Mar 28, 2021

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@lguohan lguohan merged commit cc36a14 into sonic-net:master Mar 28, 2021
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-buildimage that referenced this pull request May 23, 2021
)

* SONiC Yang model for PORTCHANNEL_INTERFACE table

Signed-off-by: Arthi Sivanantham <[email protected]>
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
)

* SONiC Yang model for PORTCHANNEL_INTERFACE table

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

Labels

YANG YANG model related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants