Skip to content

Commit

Permalink
[sonic-yang-models]: Address review comment V3.
Browse files Browse the repository at this point in the history
-- flex counter.
-- versions.
-- tests.

Signed-off-by: Praveen Chaudhary<[email protected]>
  • Loading branch information
Praveen Chaudhary committed Nov 12, 2020
1 parent 1d3f070 commit 6941fc7
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 3 deletions.
30 changes: 30 additions & 0 deletions src/sonic-yang-models/tests/yang_model_tests/yangTest.json
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,21 @@
"QUEUE": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
},
"PORT_RATES": {
"FLEX_COUNTER_STATUS": "enable"
},
"PORT_BUFFER_DROP": {
"FLEX_COUNTER_STATUS": "enable"
},
"BUFFER_POOL_WATERMARK_KEY": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
}
Expand Down Expand Up @@ -1659,6 +1674,21 @@
"QUEUE": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
},
"PORT_RATES": {
"FLEX_COUNTER_STATUS": "enable"
},
"PORT_BUFFER_DROP": {
"FLEX_COUNTER_STATUS": "enable"
},
"BUFFER_POOL_WATERMARK_KEY": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
}
Expand Down
46 changes: 44 additions & 2 deletions src/sonic-yang-models/yang-models/sonic-flex_counter.yang
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,73 @@ module sonic-flex_counter {

description "FLEX_COUNTER_TABLE part of config_db.json";

/* below are in alphabetical order */

container BUFFER_POOL_WATERMARK_KEY {
/* BUFFER_POOL_WATERMARK_STAT_COUNTER_FLEX_COUNTER_GROUP */
leaf FLEX_COUNTER_STATUS {
type flex_status;
}
}

container DEBUG_COUNTER {
/* DEBUG_COUNTER_FLEX_COUNTER_GROUP */
leaf FLEX_COUNTER_STATUS {
type flex_status;
}
}

container PFCWD {
/* PFC_WD_FLEX_COUNTER_GROUP */
leaf FLEX_COUNTER_STATUS {
type flex_status;
}
}

container PG_WATERMARK {
/* PG_WATERMARK_STAT_COUNTER_FLEX_COUNTER_GROUP */
leaf FLEX_COUNTER_STATUS {
type flex_status;
}
}

container PORT {
/* PORT_STAT_COUNTER_FLEX_COUNTER_GROUP */
leaf FLEX_COUNTER_STATUS {
type flex_status;
}
}

container QUEUE {
container PORT_BUFFER_DROP {
/* PORT_BUFFER_DROP_COUNTER_FLEX_COUNTER_GROUP */
leaf FLEX_COUNTER_STATUS {
type flex_status;
}
}

container PG_WATERMARK {
container QUEUE {
/* QUEUE_STAT_COUNTER_FLEX_COUNTER_GROUP */
leaf FLEX_COUNTER_STATUS {
type flex_status;
}
}

container QUEUE_WATERMARK {
/* QUEUE_WATERMARK_STAT_COUNTER_FLEX_COUNTER_GROUP */
leaf FLEX_COUNTER_STATUS {
type flex_status;
}
}

container RIF {
/* RIF_STAT_COUNTER_FLEX_COUNTER_GROUP */
leaf FLEX_COUNTER_STATUS {
type flex_status;
}
}

container RIF_RATES {
/* RIF_RATE_COUNTER_FLEX_COUNTER_GROUP */
leaf FLEX_COUNTER_STATUS {
type flex_status;
}
Expand Down
2 changes: 1 addition & 1 deletion src/sonic-yang-models/yang-models/sonic-versions.yang
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module sonic-versions {

container VERSIONS {

description "VERSIONS part of config_db.json";
description "DATABASE SCHEMA VERSIONS part of config_db.json";

container DATABASE {

Expand Down

0 comments on commit 6941fc7

Please sign in to comment.