-
Notifications
You must be signed in to change notification settings - Fork 690
Add accounting-method and authorization-method leaf-lists inside the /system/aaa/accounting/events/event and /system/aaa/authorization/events/event lists, respectively. #1332
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
base: master
Are you sure you want to change the base?
Conversation
|
Hi @LeonGWang , thanks for this PR. Please refactor to make this a non-breaking change. One way you could do this is by introducing only new containers/leaves. (ie: instead of move, simply add the |
|
/gcbrun |
|
No major YANG version changes in commit 9f151cb |
Thanks for the quick review @dplore. I've added back the original leaf-lists but marked them as deprecated. This is now a non-breaking changes. I have also changed the title, the description, and the pyang output. |
|
/gcbrun |
4cc96fb to
69846c3
Compare
|
Updated the submodules |
|
Should we not be referencing at least a few other references to implementations with this granularity in this PR? Although this is not currently a non-backwards-compatible change, by marking the current approach deprecated we are signalling the intent to remove it later (and break current implementations). |
|
Thanks for the feedback @jsterne
As per company (Arista) policy, unfortunately I am unable to provide references outside of Arista. Usually @dplore is kind enough to provide additional references should that be required.
This is intended. The newly added |
|
/gcbrun |
1 similar comment
|
/gcbrun |
inside the accounting/events/event and authorization/events/event lists, respectively.
…af-lists but marked them as deprecated.
… openconfig-aaa-tacacs.yang
69846c3 to
9f151cb
Compare
|
/gcbrun |
1 similar comment
|
/gcbrun |
|
Discussed at OC Operators Meeting Oct 07: Can we (1) get a better diff of the change (marking which leaves are deprecated and highlighting the leaves that have moved), and (2) @dplore (or anyone) can include a second vendor's implementation to elaborate on the need to move the configuration under events? |
|
P. S. As an aside (not the topic of this PR), certain event types (e.g.
For Without either of the 2 changes above, the YANG model would not be able to configure or represent full Aaa accounting and authorization on a vendor switch. |
|
I think we still need to show how any of these changes are necessary on more than 1 implementation. Isn't that supposed to be done by the person proposing these types of changes? The intent here is to eventually break the current model so we should only be doing that if it is needed across a broad set of implementations. |
Hi I updated the diff in the original comment to annotate deprecated and new leaves with [DEPRECATED] and [NEW]. Below is a copy of the edited version (now also in the original comment): As for other vendor implementation, @dplore can you check if other vendors have similar privilege level configurations for Aaa? |
(M) system/openconfig-aaa.yang
Change Scope
AAA
accounting-methodandauthorization-methodshould be able to be configured perevent-type.For example
event-type=AAA_ACCOUNTING_EVENT_COMMANDcan have a differentaccounting-methodconfigured vs.event-type=AAA_ACCOUNTING_EVENT_LOGIN.This change is an addition of AAA capabilities for
accounting-methodandauthorization-methodand is a non-breaking (backwards-compatible) change.Platform Implementations
Arista AAA configuration:
accounting and authorization can have different accounting-methods and authorization-methods configured (e.g.
group tacacs+,group radius,local,logging) per event type (e.g.commands,exec, etc.).Arista documentation for authorization
Arista documentation for accounting
Pyang output for the new model:
P. S. As an aside (not the topic of this PR), certain event types (e.g.
commands) can have privilege levels associated, usually between 0 (unprivileged) to 15 (full privilege). To accommodate privilege levels, we can either:event-typeidentities with privilege level suffix attached such asAAA_ACCOUNTING_EVENT_COMMAND_07andAAA_ACCOUNTING_EVENT_COMMAND_15and keep the current tree structure (i.e. backwards compatible)privilege-level[level=?]under.../events/event/..., such asFor
event-typewith only 1 privilege-level, the key could belevel=all, and forevent-typewith multiple privilege levels, the level can be more customized such aslevel=5. This better delineates betweenevent-typeandprivilege-levelbut is a breaking change.Without either of the 2 changes above, the YANG model would not be able to configure or represent full Aaa accounting and authorization on a vendor switch.