-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #356 from napalm-automation/ddos-times
DDOS_PROTOCOL_VIOLATION_SET: exclude the alert count from the additional-text
- Loading branch information
Showing
2 changed files
with
28 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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
52 changes: 26 additions & 26 deletions
52
tests/config/junos/DDOS_PROTOCOL_VIOLATION_SET/default/yang.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
{ | ||
"error": "DDOS_PROTOCOL_VIOLATION_SET", | ||
"host": "some-switch", | ||
"ip": "127.0.0.1", | ||
"timestamp": 1604883760, | ||
"timestamp": 1604883760, | ||
"severity": 4, | ||
"error": "DDOS_PROTOCOL_VIOLATION_SET", | ||
"os": "junos", | ||
"ip": "127.0.0.1", | ||
"message_details": { | ||
"message": "Warning: Host-bound traffic for protocol/exception Redirect:aggregate exceeded its allowed bandwidth at fpc 0 for 6661 times, started at 2020-11-09 01:02:39 UTC", | ||
"severity": 4, | ||
"tag": "DDOS_PROTOCOL_VIOLATION_SET", | ||
"time": "01:02:40", | ||
"facility": 3, | ||
"hostPrefix": null, | ||
"pri": "28", | ||
"processName": "jddosd", | ||
"host": "some-switch", | ||
"processId": "4223", | ||
"date": "Nov 9" | ||
}, | ||
"yang_model": "ietf-alarm", | ||
"yang_message": { | ||
"alarms": { | ||
"alarm": { | ||
"entity-type": "Redirect", | ||
"additional-text": "aggregate exceeded its allowed bandwidth at fpc 0 for 6661 times", | ||
"alarm-time": "2020-11-09 01:02:39 UTC", | ||
"event-type": 10 | ||
"event-type": 10, | ||
"additional-text": "aggregate exceeded its allowed bandwidth at fpc 0", | ||
"entity-type": "Redirect", | ||
"alarm-time": "2020-11-09 01:02:39 UTC" | ||
} | ||
} | ||
}, | ||
"message_details": { | ||
"date": "Nov 9", | ||
"time": "01:02:40", | ||
"hostPrefix": null, | ||
"host": "some-switch", | ||
"processName": "jddosd", | ||
"processId": "4223", | ||
"tag": "DDOS_PROTOCOL_VIOLATION_SET", | ||
"pri": "28", | ||
"message": "Warning: Host-bound traffic for protocol/exception Redirect:aggregate exceeded its allowed bandwidth at fpc 0 for 6661 times, started at 2020-11-09 01:02:39 UTC", | ||
"facility": 3, | ||
"severity": 4 | ||
}, | ||
"yang_model": "ietf-alarm", | ||
"os": "junos", | ||
"facility": 3, | ||
"severity": 4 | ||
}, | ||
"facility": 3, | ||
"host": "some-switch" | ||
} |