diff --git a/src/sonic-yang-models/tests/yang_model_tests/tests/buffer_pool.json b/src/sonic-yang-models/tests/yang_model_tests/tests/buffer_pool.json index 907fa9101..974ece55d 100644 --- a/src/sonic-yang-models/tests/yang_model_tests/tests/buffer_pool.json +++ b/src/sonic-yang-models/tests/yang_model_tests/tests/buffer_pool.json @@ -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" diff --git a/src/sonic-yang-models/tests/yang_model_tests/tests_config/buffer_pool.json b/src/sonic-yang-models/tests/yang_model_tests/tests_config/buffer_pool.json index 8a0005305..a2a4d6fc1 100644 --- a/src/sonic-yang-models/tests/yang_model_tests/tests_config/buffer_pool.json +++ b/src/sonic-yang-models/tests/yang_model_tests/tests_config/buffer_pool.json @@ -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": { diff --git a/src/sonic-yang-models/yang-models/sonic-buffer-pool.yang b/src/sonic-yang-models/yang-models/sonic-buffer-pool.yang index c59d4ec66..ba506c506 100644 --- a/src/sonic-yang-models/yang-models/sonic-buffer-pool.yang +++ b/src/sonic-yang-models/yang-models/sonic-buffer-pool.yang @@ -33,6 +33,7 @@ module sonic-buffer-pool { type enumeration { enum ingress; enum egress; + enum both; } description "Buffer Pool Type"; }