-
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"DEBUG_DROP_MONITOR_POSITIVE_CONFIG": { | ||
"desc": "Configure DEBUG_DROP_MONITOR positive config." | ||
}, | ||
"DEBUG_DROP_MONITOR_INVALID_TYPE": { | ||
"desc": "Configure invalid status in DEBUG_DROP_MONITOR.", | ||
"eStr": "Invalid status for debug drop monitor." | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"DEBUG_DROP_MONITOR_POSITIVE_CONFIG": { | ||
"sonic-configurable-drop-monitor:sonic-configurable-drop-monitor": { | ||
"sonic-configurable-drop-monitor:DEBUG_DROP_MONITOR": { | ||
"CONFIG": { | ||
"status": "enabled", | ||
"window": 600, | ||
"incident_count_threshold": 2, | ||
"drop_count_threshold": 2 | ||
} | ||
} | ||
} | ||
}, | ||
"DEBUG_DROP_MONITOR_INVALID_TYPE": { | ||
"sonic-configurable-drop-monitor:sonic-configurable-drop-monitor": { | ||
"sonic-configurable-drop-monitor:DEBUG_DROP_MONITOR": { | ||
"CONFIG": { | ||
"status": "down", | ||
"window": 600, | ||
"incident_count_threshold": 2, | ||
"drop_count_threshold": 2 | ||
} | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
module sonic-configurable-drop-monitor { | ||
yang-version 1.1; | ||
|
||
namespace "http://github.com/sonic-net/sonic-configurable-drop-monitor"; | ||
|
||
prefix configurable-drop-monitor; | ||
|
||
description "DEBUG_DROP_MONITOR YANG Module for SONiC OS"; | ||
|
||
revision 2025-01-10 { | ||
description | ||
"First revision"; | ||
} | ||
|
||
container sonic-configurable-drop-monitor { | ||
container DEBUG_DROP_MONITOR { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @theasianpianist , please check if |
||
container CONFIG { | ||
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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. Please consider using sonic-types |
||
pattern "enabled|disabled" { | ||
error-message "Invalid status for debug drop monitor."; | ||
error-app-tag debug-drop-monitor-invalid-status; | ||
} | ||
} | ||
description "Status of the feature"; | ||
} | ||
|
||
leaf window { | ||
type uint64; | ||
default 900; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
units seconds; | ||
description "The length of the time window in seconds"; | ||
} | ||
|
||
leaf incident_count_threshold { | ||
type uint64; | ||
default 3; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
description "The number of incidents that have to occur per window for it to be registered as a syslog"; | ||
} | ||
|
||
leaf drop_count_threshold { | ||
type uint64; | ||
default 100; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
description "The number of packet drops required for being classified as an incident"; | ||
} | ||
} /* end of container CONFIG */ | ||
} /* end of container DEBUG_DROP_MONITOR */ | ||
} /* end of container sonic-configurable-drop-monitor */ | ||
} /* end of 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 ofsonic-debug-drop-monitor
?