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
8 changes: 6 additions & 2 deletions src/sonic-yang-models/tests/files/sample_config_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -1338,10 +1338,14 @@
},
"GNMI_CLIENT_CERT": {
"testcert1": {
"role": "RW"
"role": [
"RW"
]
},
"testcert2": {
"role": "RO"
"role": [
"RO"
]
}
},
"TUNNEL": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"GNMI_CLIENT_CERT_LIST_TABLE_WITH_MISSING_ROLE": {
"desc": "CLIENT_CERT_LIST_TABLE_WITH_MISSING_ROLE failure.",
"eStrKey": "Mandatory"
"eStrKey": "MinElements"
},
"GNMI_CLIENT_CERT_LIST_TABLE_WITH_VALID_CONFIG": {
"desc": "TABLE WITH VALID CONFIG."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,15 @@
"GNMI_CLIENT_CERT_LIST": [
{
"cert_cname": "testcert1",
"role": "RW"
"role": [
"RW"
]
},
{
"cert_cname": "testcert2",
"role": "RO"
"role": [
"RO"
]
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions src/sonic-yang-models/yang-models/sonic-gnmi.yang
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ module sonic-gnmi {
"client cert common name";
}

leaf role {
leaf-list role {
type string;
mandatory true;
min-elements 1;
description
"role of client cert common name";
}
Expand Down
Loading