Skip to content

Commit

Permalink
[sonic-yang-models]: Address Review Comments V4.
Browse files Browse the repository at this point in the history
-- Fix flex coounter tests.
-- Add PORT_RATES in flex yang.
-- Change SAMPLE CONFIG as per new constraints.

Signed-off-by: Praveen Chaudhary<[email protected]>
  • Loading branch information
Praveen Chaudhary committed Nov 12, 2020
1 parent 6941fc7 commit a4a62f5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
27 changes: 12 additions & 15 deletions src/sonic-yang-models/tests/yang_model_tests/yangTest.json
Original file line number Diff line number Diff line change
Expand Up @@ -832,12 +832,6 @@
"PORT": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
},
"PORT_RATES": {
"FLEX_COUNTER_STATUS": "enable"
},
Expand All @@ -852,6 +846,9 @@
},
"QUEUE_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
},
"DEBUG_COUNTER": {
"FLEX_COUNTER_STATUS": "enable"
}
}
}
Expand Down Expand Up @@ -923,7 +920,10 @@
},
"PORT": {
"FLEX_COUNTER_STATUS": "enable"
}
},
"DEBUG_COUNTER": {
"FLEX_COUNTER_STATUS": "enable"
}
}
}
},
Expand Down Expand Up @@ -1162,7 +1162,7 @@
},
"DEVICE_METADATA": {
"localhost": {
"type": "ToR",
"type": "ToRRouter",
"mac": "00:11:22:33:dd:5a",
"hostname": "asw.dc",
"bgp_asn": "64850",
Expand Down Expand Up @@ -1650,7 +1650,7 @@
"brkout_mode": "1x100G[40G]"
},
"Ethernet4": {
"brkout_mode": "4x25G"
"brkout_mode": "4x25G[10G]"
},
"Ethernet8": {
"brkout_mode": "1x100G[40G]"
Expand All @@ -1671,12 +1671,6 @@
"PORT": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
},
"PORT_RATES": {
"FLEX_COUNTER_STATUS": "enable"
},
Expand All @@ -1691,6 +1685,9 @@
},
"QUEUE_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
},
"DEBUG_COUNTER": {
"FLEX_COUNTER_STATUS": "enable"
}
},
"CRM": {
Expand Down
7 changes: 7 additions & 0 deletions src/sonic-yang-models/yang-models/sonic-flex_counter.yang
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ module sonic-flex_counter {
}
}

container PORT_RATES {
/* PORT_BUFFER_DROP_COUNTER_FLEX_COUNTER_GROUP */
leaf FLEX_COUNTER_STATUS {
type flex_status;
}
}

container PORT_BUFFER_DROP {
/* PORT_BUFFER_DROP_COUNTER_FLEX_COUNTER_GROUP */
leaf FLEX_COUNTER_STATUS {
Expand Down

0 comments on commit a4a62f5

Please sign in to comment.