Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
},
"AAA_TEST_WRONG_FAILTHROUGH": {
"desc": "Configure a wrong failthrough in AAA table.",
"eStrKey": "InvalidValue"
"eStrKey": "Pattern",
"eStr": ["false|true|False|True"]
},
"AAA_AUTHORIZATION_TEST": {
"desc": "Configure an authorization type in AAA table."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
"AAA_LIST": [{
"type": "authentication",
"login": "tacacs+,local",
"failthrough": "true",
"debug": "true"
"failthrough": "True",
"fallback": "True",
"trace": "True",
"debug": "True"
}]
}
}
Expand Down
23 changes: 19 additions & 4 deletions src/sonic-yang-models/yang-models/sonic-system-aaa.yang
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ module sonic-system-aaa {
prefix ssys;
yang-version 1.1;

import sonic-types {
prefix stypes;
}

revision 2021-10-12 {
description "Add AAA authorization/accounting support.";
}
Expand Down Expand Up @@ -32,17 +36,28 @@ module sonic-system-aaa {
}

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.";
default false;
default False;
}

leaf fallback {
type stypes:boolean_type;
description "Allow AAA fallback";
default False;
}

leaf debug {
type boolean;
type stypes:boolean_type;
description "Enable/disable AAA debugging";
default false;
default False;
}

leaf trace {
type stypes:boolean_type;
description "AAA packet trace";
default False;
}
}
}
}
Expand Down