Add PG_DROP yang model (#7899)
Add PG_DROP yang model and add check this field in unit test for yang model How to verify it Firstly try to do DPB (2x50G) for Ethernet0 port: sudo config interface breakout Ethernet0 2x50G -f After that try to do DPB (1x100G[40G]) for Ethernet0 port: sudo config interface breakout Ethernet0 1x100G[40G] -f Both commands should work correctly. Signed-off-by: Mykola Gerasymenko <mykolax.gerasymenko@intel.com>
This commit is contained in:
parent
e3151acd41
commit
c406d42a26
@ -886,6 +886,9 @@
|
|||||||
"PFCWD": {
|
"PFCWD": {
|
||||||
"FLEX_COUNTER_STATUS": "enable"
|
"FLEX_COUNTER_STATUS": "enable"
|
||||||
},
|
},
|
||||||
|
"PG_DROP": {
|
||||||
|
"FLEX_COUNTER_STATUS": "enable"
|
||||||
|
},
|
||||||
"PG_WATERMARK": {
|
"PG_WATERMARK": {
|
||||||
"FLEX_COUNTER_STATUS": "enable"
|
"FLEX_COUNTER_STATUS": "enable"
|
||||||
},
|
},
|
||||||
@ -969,6 +972,9 @@
|
|||||||
"QUEUE": {
|
"QUEUE": {
|
||||||
"FLEX_COUNTER_STATUS": "enable"
|
"FLEX_COUNTER_STATUS": "enable"
|
||||||
},
|
},
|
||||||
|
"PG_DROP": {
|
||||||
|
"FLEX_COUNTER_STATUS": "enable"
|
||||||
|
},
|
||||||
"PG_WATERMARK": {
|
"PG_WATERMARK": {
|
||||||
"FLEX_COUNTER_STATUS": "enable"
|
"FLEX_COUNTER_STATUS": "enable"
|
||||||
},
|
},
|
||||||
@ -1680,6 +1686,9 @@
|
|||||||
"PFCWD": {
|
"PFCWD": {
|
||||||
"FLEX_COUNTER_STATUS": "enable"
|
"FLEX_COUNTER_STATUS": "enable"
|
||||||
},
|
},
|
||||||
|
"PG_DROP": {
|
||||||
|
"FLEX_COUNTER_STATUS": "enable"
|
||||||
|
},
|
||||||
"PG_WATERMARK": {
|
"PG_WATERMARK": {
|
||||||
"FLEX_COUNTER_STATUS": "enable"
|
"FLEX_COUNTER_STATUS": "enable"
|
||||||
},
|
},
|
||||||
|
@ -48,6 +48,13 @@ module sonic-flex_counter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
container PG_DROP {
|
||||||
|
/* PG_DROP_STAT_COUNTER_FLEX_COUNTER_GROUP */
|
||||||
|
leaf FLEX_COUNTER_STATUS {
|
||||||
|
type flex_status;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
container PG_WATERMARK {
|
container PG_WATERMARK {
|
||||||
/* PG_WATERMARK_STAT_COUNTER_FLEX_COUNTER_GROUP */
|
/* PG_WATERMARK_STAT_COUNTER_FLEX_COUNTER_GROUP */
|
||||||
leaf FLEX_COUNTER_STATUS {
|
leaf FLEX_COUNTER_STATUS {
|
||||||
|
Loading…
Reference in New Issue
Block a user