Add handling of ping probe failed traps to juniper syslog trap handler#4083
Add handling of ping probe failed traps to juniper syslog trap handler#4083johannaengland wants to merge 6 commits into
Conversation
|
Warning 15 of 15 new test names are missing convention keywords (
Why am I seeing this?Test names should follow a loose given/when/then pattern with keywords like Examples:
|
Test results 5 files 5 suites 8m 7s ⏱️ Results for commit f2d38ce. ♻️ This comment has been updated with latest results. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feature/snmptrap-juniper-sysloghandler #4083 +/- ##
=======================================================================
Coverage 64.64% 64.64%
=======================================================================
Files 634 634
Lines 47098 47110 +12
Branches 43 43
=======================================================================
+ Hits 30446 30455 +9
- Misses 16642 16645 +3
Partials 10 10 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
This is now in production at one customer, will not merge this until I've gotten confirmation that it works as intended |
As requested by one of the engineers requesting this feature
lunkwill42
left a comment
There was a problem hiding this comment.
This has been requested by the CNaaS engineering team.
That may very well be, but that still doesn't tell me much about what this is. It also lacks a separate news fragment that would have explained it.
Anyway, 14 test functions have been moved into a test class, but they all lack the initial self parameter that methods need: Most of them have db as their first argument, which now means that these tests do not actually invoke the db fixture at all, db becomes the self reference, since the instance always becomes the first argument of a method. This also means that these tests do not actually run inside a transaction and can potentially screw up the database for other tests.
I could also question the design:
This adds a new stateful event to NAV, but there is no state involved: A trap may open a state, but there is no corresponding trap to close the state...
Since there is no explanation for what problem this actually solves, I don't feel equipped to comment further on the design...
I've gotten the confirmation that it works as intented |
I have now added a news fragment and updated the PR description a bit more. If more information is needed, we will need to ask the CNaaS engineers |
|



Scope and purpose
Dependent on #4080.
Reference: https://mibs.observium.org/mib/JUNIPER-SYSLOG-MIB/
This has been requested by the CNaaS engineering team. They want to get a notification when a ping probe fails, which happens when a juniper syslog trap with the event name
PING_PROBE_FAILEDis received. For now it is enough to open an event and the engineering team will close the event, because it is not clear yet what trap would have to be received to mark this event as closed again.Contributor Checklist
Every pull request should have this checklist filled out, no matter how small it is.
More information about contributing to NAV can be found in the
Hacker's guide to NAV.
<major>.<minor>.x). For a new feature or other additions, it should be based onmaster.