Add PG_DROP yang model (#7138)
Signed-off-by: Mykola Gerasymenko <mykolax.gerasymenko@intel.com> Why I did it Dynamic Port Breakout falls cause of PG_DROP yang model missing How I did it 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.
This commit is contained in:
parent
80d01f2f9a
commit
7162532ddf
@ -11,6 +11,9 @@
|
||||
"PFCWD": {
|
||||
"FLEX_COUNTER_STATUS": "enable"
|
||||
},
|
||||
"PG_DROP": {
|
||||
"FLEX_COUNTER_STATUS": "enable"
|
||||
},
|
||||
"PG_WATERMARK": {
|
||||
"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 {
|
||||
/* PG_WATERMARK_STAT_COUNTER_FLEX_COUNTER_GROUP */
|
||||
leaf FLEX_COUNTER_STATUS {
|
||||
|
Reference in New Issue
Block a user