[Link Event Damping] Add YANG model for dampening configuration#26231
Open
DendroLabs wants to merge 3 commits intosonic-net:masterfrom
Open
[Link Event Damping] Add YANG model for dampening configuration#26231DendroLabs wants to merge 3 commits intosonic-net:masterfrom
DendroLabs wants to merge 3 commits intosonic-net:masterfrom
Conversation
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Adds 6 configuration leaves to the PORT_LIST in sonic-port.yang for the link event dampening feature (sonic-net/SONiC#1071): - link_event_damping_algorithm (disabled/aied/aied-monitor) - max_suppress_time - decay_half_life - suppress_threshold - reuse_threshold - flap_penalty The aied-monitor mode is a SONiC-specific enhancement recommended by RFC 7196 that calculates penalties without suppressing events, allowing safe parameter tuning in production. Signed-off-by: DendroLabs <info@dendrolabs.com>
- Add must constraint: decay_half_life <= max_suppress_time - Add must constraint: reuse_threshold <= suppress_threshold - Add valid and invalid test cases for dampening parameters Signed-off-by: DendroLabs <info@dendrolabs.com>
9320e1f to
3c025e0
Compare
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Author
|
/easycla |
When a must constraint has a custom error-message, libyang outputs the custom message directly instead of the generic "Must condition not satisfied". Change eStrKey from "Must" to "None" so the test only checks for our custom error string. Signed-off-by: DendroLabs <info@dendrolabs.com>
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds YANG model leaves to
sonic-port.yangfor the Link Event Damping feature (HLD: sonic-net/SONiC#1071).New leaves in PORT_LIST:
link_event_damping_algorithm-- string:disabled|aied|aied-monitor(default:"disabled")max_suppress_time-- uint32, seconds (default: 0)decay_half_life-- uint32, seconds (default: 0)suppress_threshold-- uint32, unitless penalty (default: 0)reuse_threshold-- uint32, unitless penalty (default: 0)flap_penalty-- uint32, unitless penalty (default: 0)The
aied-monitormode is a SONiC-specific enhancement recommended by RFC 7196 ("Calculate But Do Not Damp"). It calculates penalties and emits syslog messages but does NOT suppress link events, allowing operators to safely tune parameters in production before enabling full dampening. No other NOS vendor has implemented this.Related PRs:
Test plan
pyanglint)🤖 Generated with Claude Code