Skip to content

Commit

Permalink
[yang]: adding Buffer pool enum type both for sonic chassis (sonic-ne…
Browse files Browse the repository at this point in the history
  • Loading branch information
vmittal-msft authored and gechiang committed Jun 4, 2024
1 parent cbc03a3 commit 9304fcf
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 9304fcf

Please sign in to comment.