-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SONiC Yang model support for NAT #7051
Conversation
/Azurepipelines run |
Commenter does not have sufficient privileges for PR 7051 in repo Azure/sonic-buildimage |
Signed-off-by: Akhilesh Samineni <akhilesh.samineni@broadcom.com>
Signed-off-by: Akhilesh Samineni <akhilesh.samineni@broadcom.com>
92aae17
to
938baf0
Compare
Signed-off-by: Akhilesh Samineni <akhilesh.samineni@broadcom.com>
@praveen-li @arlakshm @lguohan @venkatmahalingam |
|
||
description "NAT_GLOBAL table part of config_db.json"; | ||
|
||
list NAT_GLOBAL_LIST { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace list (with max-elements 1) with a container? e.g container NAT_GLOBAL { container values {...}}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like List is mandatory here, seeing errors when I replace list with container.
Is it supported ? If yes, could you please give me some reference here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please refer TACPLUS container in file src/sonic-yang-models/yang-models/sonic-system-tacacs.yang
PR - https://github.com/Azure/sonic-buildimage/pull/7671/files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, replaced list with a container.
@AkhileshSamineni Please fix the build failures. |
@praveen-li @arlakshm @lguohan @venkatmahalingam |
@kperumalbfn, can you please take a look at this PR |
@AkhileshSamineni the sonic-utilities build is failing with the below error.
|
@AkhileshSamineni Please mark the comments addressed as resolved to track the outstanding comments better, |
@venkatmahalingam I have addressed all the comments and mentioned those as resolved. |
@praveen-li @arlakshm @lguohan @venkatmahalingam |
@praveen-li @arlakshm @lguohan @venkatmahalingam |
@AkhileshSamineni can you address the latest comment from @venkatmahalingam ? |
@arlakshm Addressed the review comment. |
This change has SONiC Yang model support for NAT - Created SONiC Yang model for NAT - Tables: STATIC_NAPT, STATIC_NAT, NAT_GLOBAL, NAT_POOL, NAT_BINDINGS. How I did it Defined Yang models for NAT based on Guideline doc: https://github.com/Azure/SONiC/blob/master/doc/mgmt/SONiC_YANG_Model_Guidelines.md and https://github.com/Azure/sonic-utilities/blob/master/doc/Command-Reference.md How to verify it Added test cases to verify it.
This change has SONiC Yang model support for NAT - Created SONiC Yang model for NAT - Tables: STATIC_NAPT, STATIC_NAT, NAT_GLOBAL, NAT_POOL, NAT_BINDINGS. How I did it Defined Yang models for NAT based on Guideline doc: https://github.com/Azure/SONiC/blob/master/doc/mgmt/SONiC_YANG_Model_Guidelines.md and https://github.com/Azure/sonic-utilities/blob/master/doc/Command-Reference.md How to verify it Added test cases to verify it.
SONiC Yang model support for NAT
What I did
Created SONiC Yang model for NAT
Tables: STATIC_NAPT, STATIC_NAT, NAT_GLOBAL, NAT_POOL, NAT_BINDINGS.
How I did it
Defined Yang models for NAT based on Guideline doc:
https://github.com/Azure/SONiC/blob/master/doc/mgmt/SONiC_YANG_Model_Guidelines.md
and
https://github.com/Azure/sonic-utilities/blob/master/doc/Command-Reference.md
How to verify it
Added test cases to verify it.
Signed-off-by: Akhilesh Samineni akhilesh.samineni@broadcom.com