[DPB] update flex counter yang model, fix BUFFER_POOL_WATERMARK (#6178)
Looks like we have redefinition of BUFFER_POOL_WATERMARK_KEY to BUFFER_POOL_WATERMARK, so DPB fall.
c7ee75f0b9/orchagent/flexcounterorch.cpp (L18)
#define BUFFER_POOL_WATERMARK_KEY "BUFFER_POOL_WATERMARK"
unordered_map<string, string> flexCounterGroupMap =
{
{"PORT", PORT_STAT_COUNTER_FLEX_COUNTER_GROUP},
{"PORT_RATES", PORT_RATE_COUNTER_FLEX_COUNTER_GROUP},
{"PORT_BUFFER_DROP", PORT_STAT_COUNTER_FLEX_COUNTER_GROUP},
{"QUEUE", QUEUE_STAT_COUNTER_FLEX_COUNTER_GROUP},
{"PFCWD", PFC_WD_FLEX_COUNTER_GROUP},
{"QUEUE_WATERMARK", QUEUE_WATERMARK_STAT_COUNTER_FLEX_COUNTER_GROUP},
{"PG_WATERMARK", PG_WATERMARK_STAT_COUNTER_FLEX_COUNTER_GROUP},
{BUFFER_POOL_WATERMARK_KEY, BUFFER_POOL_WATERMARK_STAT_COUNTER_FLEX_COUNTER_GROUP},
This commit is contained in:
parent
0755f29fe7
commit
f7d082244a
@ -850,7 +850,7 @@
|
||||
"PORT_BUFFER_DROP": {
|
||||
"FLEX_COUNTER_STATUS": "enable"
|
||||
},
|
||||
"BUFFER_POOL_WATERMARK_KEY": {
|
||||
"BUFFER_POOL_WATERMARK": {
|
||||
"FLEX_COUNTER_STATUS": "enable"
|
||||
},
|
||||
"QUEUE": {
|
||||
@ -1689,7 +1689,7 @@
|
||||
"PORT_BUFFER_DROP": {
|
||||
"FLEX_COUNTER_STATUS": "enable"
|
||||
},
|
||||
"BUFFER_POOL_WATERMARK_KEY": {
|
||||
"BUFFER_POOL_WATERMARK": {
|
||||
"FLEX_COUNTER_STATUS": "enable"
|
||||
},
|
||||
"QUEUE": {
|
||||
|
@ -27,7 +27,7 @@ module sonic-flex_counter {
|
||||
|
||||
/* below are in alphabetical order */
|
||||
|
||||
container BUFFER_POOL_WATERMARK_KEY {
|
||||
container BUFFER_POOL_WATERMARK {
|
||||
/* BUFFER_POOL_WATERMARK_STAT_COUNTER_FLEX_COUNTER_GROUP */
|
||||
leaf FLEX_COUNTER_STATUS {
|
||||
type flex_status;
|
||||
|
Loading…
Reference in New Issue
Block a user