Skip to content

Commit

Permalink
Merge pull request #382 from gechiang/202205
Browse files Browse the repository at this point in the history
[yang]: adding Buffer pool enum type both for sonic chassis (#18956)
  • Loading branch information
gechiang authored Jun 4, 2024
2 parents cbc03a3 + 9304fcf commit d41fb92
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"BUFFER_POOL_CORRECT_TYPE_EGRESS_VALUE": {
"desc": "BUFFER_POOL_CORRECT_TYPE_EGRESS_VALUE no failure."
},
"BUFFER_POOL_CORRECT_TYPE_BOTH_VALUE": {
"desc": "BUFFER_POOL_CORRECT_TYPE_BOTH_VALUE no failure."
},
"BUFFER_POOL_WRONG_TYPE_VALUE": {
"desc": "BUFFER_POOL_WRONG_TYPE_VALUE pattern failure.",
"eStr": "wrong"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@
}
}
},
"BUFFER_POOL_CORRECT_TYPE_BOTH_VALUE": {
"sonic-buffer-pool:sonic-buffer-pool": {
"sonic-buffer-pool:BUFFER_POOL": {
"BUFFER_POOL_LIST": [
{
"name": "Ethernet4",
"mode": "static",
"size": "12766208",
"type": "both"
}
]
}
}
},
"BUFFER_POOL_WRONG_TYPE_VALUE": {
"sonic-buffer-pool:sonic-buffer-pool": {
"sonic-buffer-pool:BUFFER_POOL": {
Expand Down
1 change: 1 addition & 0 deletions src/sonic-yang-models/yang-models/sonic-buffer-pool.yang
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ module sonic-buffer-pool {
type enumeration {
enum ingress;
enum egress;
enum both;
}
description "Buffer Pool Type";
}
Expand Down

0 comments on commit d41fb92

Please sign in to comment.