-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[arista][feature] Add yang model for DEBUG_DROP_MONITOR table #21694
base: master
Are you sure you want to change the base?
[arista][feature] Add yang model for DEBUG_DROP_MONITOR table #21694
Conversation
- Add yang model definition - Add testcases covering new yang model - Update documentation to describe the new table
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
description "Stores configuration for debug drop monitor in CONFIG_DB"; | ||
|
||
leaf status { | ||
type string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please consider using sonic-types
|
||
leaf window { | ||
type uint64; | ||
default 900; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
leaf incident_count_threshold { | ||
type uint64; | ||
default 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
leaf drop_count_threshold { | ||
type uint64; | ||
default 100; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,51 @@ | |||
module sonic-configurable-drop-monitor { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reason to choose sonic-configurable-drop-monitor
instead of sonic-debug-drop-monitor
?
} | ||
|
||
container sonic-configurable-drop-monitor { | ||
container DEBUG_DROP_MONITOR { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @theasianpianist , please check if DEBUG_COUNTER
and DEBUG_COUNTER_DROP_REASON
has dependency on this for github issue missing YANG: #21505
This PR adds the YANG model definition for the
DEBUG_DROP_MONITOR
table to the SONiC yang models repository. The new YANG model defines the schema for configuring and monitoring persistent drop counters in SONiC.Changes:
sonic-debug-drop-monitor.yang
tosonic-yang-models/yang/
.tests/
to cover the new YANG model, including validation of configuration data and schema.docs/
to describe the newDEBUG_DROP_MONITOR
table and its attributes.Why I did it
To provide a standardized and programmatic way to configure and monitor persistent drop counters in SONiC. This enhances the manageability and observability of network traffic.
Work item tracking - Microsoft ADO (number only):
Fixes #21675
HLD: sonic-net/SONiC#1912
How I did it
Created a new YANG model file, implemented test cases for validation, and updated the relevant documentation.
How to verify it
sonic-debug-drop-monitor.yang
file in thesonic-yang-models/yang/
directory.tests/
and ensure they pass.docs/
for accuracy and completeness.Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Added YANG model definition for the DEBUG_DROP_MONITOR table, enabling standardized configuration and monitoring of persistent drop counters.
Link to config_db schema for YANG module changes
https://github.com/sonic-net/sonic-buildimage/pull/21694/files#diff-7202f7348dad4b5be36f441f7ff0a5d6468395cbf89a9b75aa87399cef07292d
A picture of a cute animal (not mandatory but encouraged)