Conversation
Signed-off-by: Gang Lv [email protected]
Signed-off-by: Gang Lv [email protected]
|
/azpw run Azure.sonic-buildimage |
|
/AzurePipelines run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@liuh-80 @renukamanavalan Could you help review? |
qiluo-msft
left a comment
There was a problem hiding this comment.
LGTM. Please wait a while for more eyes.
|
Found an issue here: |
| type string; | ||
| description "AAA authentication/authorization/accounting methods - local/tacacs+/disable"; | ||
| type string { | ||
| pattern 'radius|tacacs\+|local|default' { |
There was a problem hiding this comment.
Do we accommodate the value "default" in SONiC auth operations?
There was a problem hiding this comment.
We do accommodate "default", the default will set authentication "login" parameter to "local" and remove all other authentication settings.
Share the same concern with @renukamanavalan
| type string; | ||
| description "AAA authentication/authorization/accounting methods - local/tacacs+/disable"; | ||
| type string { | ||
| pattern 'radius|tacacs\+|local|default' { |
There was a problem hiding this comment.
Can you please add config into https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/tests/files/sample_config_db.json ?
There was a problem hiding this comment.
Please also add configuration schema here https://github.com/Azure/sonic-swss/blob/53c630b82d429db892bf288dd9f323c5a8370cd5/doc/Configuration.md
There was a problem hiding this comment.
AAA setting already in sample_config_db.json:
"AAA": {
"authentication": {
"login": "local"
},
"authorization": {
"login": "local"
},
"accounting": {
"login": "local"
}
},
There was a problem hiding this comment.
Will update Configuration.md in another PR because it's in different repo.
There was a problem hiding this comment.
Created a new PR for update configuration.md in sonic-swss repo: sonic-net/sonic-swss#2168
|
Need to confirm the pattern, abandon this PR. |
| "sonic-system-aaa:AAA": { | ||
| "AAA_LIST": [{ | ||
| "type": "authentication", | ||
| "login": "tacacs+,local", |
There was a problem hiding this comment.
should keep tacacs+ here, because sonic support login with tacacs+ protocol
#Closed
| type string; | ||
| description "AAA authentication/authorization/accounting methods - local/tacacs+/disable"; | ||
| type string { | ||
| pattern 'radius|tacacs\+|local|default' { |
There was a problem hiding this comment.
This pattern need update to support multiple login method, for example following method will try authentication with tacacs+ protocol first, if tatacs+ authentication failed, will try use local authentication:
tacacs+,local
#Closed
There was a problem hiding this comment.
Suggest use this regex for pattern: ((tacacs+|local|redus|default),{0,1})+
|
After offline sync with gang, he will handover this PR to me, I will continue to finish this PR. |
So we wait till liuh-80 finish the PR update. |
Signed-off-by: Gang Lv [email protected] <!-- Please make sure you've read and understood our contributing guidelines: https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md ** Make sure all your commits include a signature generated with `git commit -s` ** If this is a bug fix, make sure your description includes "fixes #xxxx", or "closes #xxxx" or "resolves #xxxx" Please provide the following information: --> #### Why I did it end2end test is blocked by Yang model for AAA login pattern. #### How I did it Add pattern to AAA yang models. #### How to verify it Run UT for sonc-yang-models. #### Which release branch to backport (provide reason below if selected) <!-- - Note we only backport fixes to a release branch, *not* features! - Please also provide a reason for the backporting below. - e.g. - [x] 202006 --> - [ ] 201811 - [ ] 201911 - [ ] 202006 - [ ] 202012 - [ ] 202106 #### Description for the changelog <!-- Write a short (one line) summary that describes the changes in this pull request for inclusion in the changelog: --> Fix #9713 #### A picture of a cute animal (not mandatory but encouraged)
Signed-off-by: Gang Lv [email protected]
Why I did it
end2end test is blocked by Yang model for AAA login pattern.
How I did it
Add pattern to AAA yang models.
How to verify it
Run UT for sonc-yang-models.
Which release branch to backport (provide reason below if selected)
Description for the changelog
Fix #9713
A picture of a cute animal (not mandatory but encouraged)