You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[yang] Restrict AAA authorization with TACPLUS passkey (sonic-net#18155)
### Why I did it
Command cannot be executed when tacacs+ in AAA authorization is set and passkey in TACPLUs is not set. There should be such restriction in YANG model definition.
##### Work item tracking
- Microsoft ADO **(number only)**: 26898399
#### How I did it
Add restirction
#### How to verify it
unit test
must'not(./type = "authorization" and contains(./login, "tacacs+") and not(/tacacs:sonic-system-tacacs/tacacs:TACPLUS/tacacs:global/tacacs:passkey))' {
47
+
error-message"Authorization with 'tacacs+' is not allowed when passkey not exists.";
48
+
}
49
+
42
50
leaf failthrough {
43
51
type stypes:boolean_type;
44
52
description"When set to true, authentication is attempted on next configured server/local in the list upon failure.";
0 commit comments