-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add proper implementation of CLEARFLAP
API command
#318
Conversation
CLEARFLAP
API command
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
Test results 3 files 3 suites 1m 18s ⏱️ Results for commit caffac2. ♻️ This comment has been updated with latest results. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #318 +/- ##
=========================================
Coverage ? 98.17%
=========================================
Files ? 64
Lines ? 7972
Branches ? 0
=========================================
Hits ? 7826
Misses ? 146
Partials ? 0 ☔ View full report in Codecov by Sentry. |
e1fdf07
to
b83a72f
Compare
b83a72f
to
6f253f3
Compare
6f253f3
to
de0a7ed
Compare
Quality Gate passedIssues Measures |
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.
Just the one little comment
This was ported directly from Zino 1, and is intended to clear internal flap states on-demand from an API user: It finds the matching PortStateEvent for an interface, sets its flapping state to stable and logs the clearflap event, while also taking care to remove all the tracked flapping stats from the FlapStates registry.
This is ported directly from Zino 1, and is intended for consumation by an interactive API user: It runs the routines to clear internal flap states for an interface, and schedules an SNMP re-verification of the the port's current state.
02e5c27
to
caffac2
Compare
Fixed the unnecessary duplicate and rebased on latest master to resolve new merge conflict, @johannaengland |
This replaces the dummy implementation of the CLEARFLAP API command with an implementation that actually clears the flapping state of a port.
caffac2
to
3abb7d6
Compare
Quality Gate passedIssues Measures |
Scope and purpose
Fixes #113. #311 added a dummy implementation, this completes it.
Contributor Checklist
Every pull request should have this checklist filled out, no matter how small it is.
More information about contributing to Zino can be found in the
README.