[yang]: Update AAA yang models (#9724)
#### Why I did it AAA yang model is not up to date. #### How I did it Add fallback and trace field, and replace boolean_type #### How to verify it Run UT for sonic_yang_models. Follow the steps from #9710
This commit is contained in:
parent
234c4aa317
commit
e8368e6545
@ -8,7 +8,8 @@
|
|||||||
},
|
},
|
||||||
"AAA_TEST_WRONG_FAILTHROUGH": {
|
"AAA_TEST_WRONG_FAILTHROUGH": {
|
||||||
"desc": "Configure a wrong failthrough in AAA table.",
|
"desc": "Configure a wrong failthrough in AAA table.",
|
||||||
"eStrKey": "InvalidValue"
|
"eStrKey": "Pattern",
|
||||||
|
"eStr": ["false|true|False|True"]
|
||||||
},
|
},
|
||||||
"AAA_AUTHORIZATION_TEST": {
|
"AAA_AUTHORIZATION_TEST": {
|
||||||
"desc": "Configure an authorization type in AAA table."
|
"desc": "Configure an authorization type in AAA table."
|
||||||
|
@ -5,8 +5,10 @@
|
|||||||
"AAA_LIST": [{
|
"AAA_LIST": [{
|
||||||
"type": "authentication",
|
"type": "authentication",
|
||||||
"login": "tacacs+,local",
|
"login": "tacacs+,local",
|
||||||
"failthrough": "true",
|
"failthrough": "True",
|
||||||
"debug": "true"
|
"fallback": "True",
|
||||||
|
"trace": "True",
|
||||||
|
"debug": "True"
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,10 @@ module sonic-system-aaa {
|
|||||||
prefix ssys;
|
prefix ssys;
|
||||||
yang-version 1.1;
|
yang-version 1.1;
|
||||||
|
|
||||||
|
import sonic-types {
|
||||||
|
prefix stypes;
|
||||||
|
}
|
||||||
|
|
||||||
revision 2021-10-12 {
|
revision 2021-10-12 {
|
||||||
description "Add AAA authorization/accounting support.";
|
description "Add AAA authorization/accounting support.";
|
||||||
}
|
}
|
||||||
@ -32,17 +36,28 @@ module sonic-system-aaa {
|
|||||||
}
|
}
|
||||||
|
|
||||||
leaf failthrough {
|
leaf failthrough {
|
||||||
type boolean;
|
type stypes:boolean_type;
|
||||||
description "When set to true, authentication is attempted on next configured server/local in the list upon failure.";
|
description "When set to true, authentication is attempted on next configured server/local in the list upon failure.";
|
||||||
default false;
|
default False;
|
||||||
|
}
|
||||||
|
|
||||||
|
leaf fallback {
|
||||||
|
type stypes:boolean_type;
|
||||||
|
description "Allow AAA fallback";
|
||||||
|
default False;
|
||||||
}
|
}
|
||||||
|
|
||||||
leaf debug {
|
leaf debug {
|
||||||
type boolean;
|
type stypes:boolean_type;
|
||||||
description "Enable/disable AAA debugging";
|
description "Enable/disable AAA debugging";
|
||||||
default false;
|
default False;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
leaf trace {
|
||||||
|
type stypes:boolean_type;
|
||||||
|
description "AAA packet trace";
|
||||||
|
default False;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user