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] Align to authentication check with load_minigraph to cover more scenarios (#18908)
#### Why I did it
This will cover more cases for those only have authentication enabled with tacacs but not authorization enabled. Also, make it algin with the check in load_minigraph
#### How I did it
Change to authentication
#### How to verify it
unit test
Copy file name to clipboardexpand all lines: src/sonic-yang-models/yang-models/sonic-system-aaa.yang
+2-2
Original file line number
Diff line number
Diff line change
@@ -43,8 +43,8 @@ module sonic-system-aaa {
43
43
default"local";
44
44
}
45
45
46
-
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.";
46
+
must'not(./type = "authentication" and contains(./login, "tacacs+") and not(/tacacs:sonic-system-tacacs/tacacs:TACPLUS/tacacs:global/tacacs:passkey))' {
47
+
error-message"Authentication with 'tacacs+' is not allowed when passkey not exists.";
0 commit comments