-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 Structured Events w/ YANG Models #12270
Merged
renukamanavalan
merged 35 commits into
sonic-net:master
from
renukamanavalan:syslog_telemetry_shared
Oct 10, 2022
Merged
Changes from 28 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
017b9b5
Test covers from event_publish to event_receive
renukamanavalan 8fa7cc7
Build a rsyslog debian pkg
renukamanavalan 3011a32
Added monit code to be invoked by monit periodically
renukamanavalan 703e96f
Merge branch 'sonic-net:master' into syslog_telemetry_shared
zbud-msft 666e0ae
Merge remote-tracking branch 'origin/syslog_telemetry_shared' into re…
renukamanavalan ce83a9a
Merge pull request #15 from renukamanavalan/remanava_final
renukamanavalan 423446e
Add plugin bgp host (#16)
zbud-msft bcc5421
fixed a bug in monit conf file (#19)
renukamanavalan 171a1f9
Added event for container_checker (#20)
renukamanavalan 42d718c
Add Structured events yang models (#21)
zbud-msft bd051e5
Add conf to host, move plugin to sbin (#18)
zbud-msft b74b2a1
Schema update (#22)
renukamanavalan 90a640e
Revert "Schema update (#22)" (#23)
zbud-msft f782f42
Revert "Add Structured events yang models (#21)" (#24)
zbud-msft ca7c0bb
Merge branch 'sonic-net:master' into syslog_telemetry_shared
zbud-msft d65e511
Change log level (#25)
zbud-msft 2cd2385
Move event_publish_tool to sbin (#26)
zbud-msft 78ac446
Add events to host (#27)
zbud-msft e773a0e
Fix LGTM (#28)
zbud-msft 2b30fc4
Add systemd event (#29)
zbud-msft e4c97be
Add events to host (#30)
zbud-msft 929fa81
Add events to host (#31)
zbud-msft 2ba5c9a
Add systemd regex file to rsyslog.d dir
zbud-msft 1527ad2
Merge branch 'sonic-net:master' into syslog_telemetry_shared
zbud-msft 617559c
Proposed yang model changes (#35)
zbud-msft d389d89
Add remaining events (#33)
zbud-msft 3183e88
Remove event yang models from test count (#36)
zbud-msft d7630d8
Merge branch 'sonic-net:master' into syslog_telemetry_shared
zbud-msft 5923461
Revert "Remove event yang models from test count (#36)" (#37)
zbud-msft 5bd7d95
Revert "Proposed yang model changes (#35)" (#38)
zbud-msft 0b8c223
Merge branch 'sonic-net:master' into syslog_telemetry_shared
zbud-msft 7ce2875
Merge branch 'sonic-net:master' into syslog_telemetry_shared
zbud-msft ee59b08
Merge branch 'sonic-net:master' into syslog_telemetry_shared
zbud-msft 1c4e1fc
Merge remote-tracking branch 'upstream/master' into syslog_telemetry_…
renukamanavalan 0faa95a
Merge remote-tracking branch 'upstream/master' into syslog_telemetry_…
renukamanavalan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[ | ||
{ | ||
"tag": "dhcp-relay-discard", | ||
"regex": "Discarding packet received on ([a-zA-Z0-9-_]*) interface that has no IPv4 address assigned.", | ||
"params": [ "ifname" ] | ||
} | ||
] |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[ | ||
{ | ||
"tag": "invalid-freelist", | ||
"regex": "invalid freelist", | ||
"params": [] | ||
} | ||
] |
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[ | ||
{ | ||
"tag": "event-kernel", | ||
"regex": "(write failed|Write protected|Remounting filesystem read-only|zlib decompression failed, data probably corrupt)", | ||
"params": [ "fail_type:ret=(arg==\"write failed\")and\"write_failed\"or((arg==\"Write protected\")and\"write_protected\"or((arg==\"Remounting filesystem read-only\")and\"remount_read_only\"or((arg==\"zlib decompression failed, data probably corrupt\")and\"zlib_decompress\"or\"\")))" ] | ||
} | ||
] |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[ | ||
{ | ||
"tag": "event-seu", | ||
"regex": "SEU error was detected", | ||
"params": [] | ||
} | ||
] |
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[ | ||
{ | ||
"tag": "syncd-failure", | ||
"regex": "(MMU ERR Type|L3 route add failed with error|Assertion failed|Received switch event|SER Parity Check Error)", | ||
"params": [ "fail_type:ret=(arg==\"Received switch event\")and\"switch_event\"or((arg==\"Assertion Failed\")and\"assert\"or((arg==\"SER Parity Check Error\")and\"parity_check\"or((arg==\"MMU ERR Type\")and\"mmu_err\"or((arg==\"route add failed\")and\"route_add_failed\"or\"\"))))" ] | ||
} | ||
] |
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
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
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
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
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
47 changes: 47 additions & 0 deletions
47
src/sonic-yang-models/tests/yang_model_tests/tests/sonic-events-bgp.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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"SONIC_EVENTS_BGP_BGP_STATE_INCORRECT_IP": { | ||
"desc": "BGP_STATE_EVENT_INCORRECT_IP failure.", | ||
"eStrKey": "InvalidValue" | ||
}, | ||
"SONIC_EVENTS_BGP_BGP_STATE_INCORRECT_STATUS": { | ||
"desc": "BGP_STATE_EVENT_INCORRECT_STATUS failure.", | ||
"eStrKey": "InvalidValue" | ||
}, | ||
"SONIC_EVENTS_BGP_BGP_STATE_INCORRECT_TIMESTAMP": { | ||
"desc": "BGP_STATE_EVENT_INCORRECT_TIMESTAMP failure.", | ||
"eStrKey": "Pattern" | ||
}, | ||
"SONIC_EVENTS_BGP_BGP_STATE_VALID": { | ||
"desc": "VALID BGP STATE EVENT." | ||
}, | ||
"SONIC_EVENTS_BGP_NOTIFICATION_INCORRECT_MAJOR_CODE": { | ||
"desc": "BGP_NOTIFICATION_INCORRECT_MAJOR_CODE failure.", | ||
"eStrKey": "InvalidValue" | ||
}, | ||
"SONIC_EVENTS_BGP_NOTIFICATION_INCORRECT_MINOR_CODE": { | ||
"desc": "BGP_NOTIFICATION_INCORRECT_MINOR_CODE failure.", | ||
"eStrKey": "InvalidValue" | ||
}, | ||
"SONIC_EVENTS_BGP_NOTIFICATION_INCORRECT_IP": { | ||
"desc": "BGP_NOTIFICATION_INCORRECT_IP failure.", | ||
"eStrKey": "InvalidValue" | ||
}, | ||
"SONIC_EVENTS_BGP_NOTIFICATION_INCORRECT_IS-SENT": { | ||
"desc": "BGP_NOTIFICATION_INCORRECT_IS-SENT failure.", | ||
"eStrKey": "InvalidValue" | ||
}, | ||
"SONIC_EVENTS_BGP_NOTIFICATION_INCORRECT_TIMESTAMP": { | ||
"desc": "BGP_NOTIFICATION_INCORRECT_TIMESTAMP failure.", | ||
"eStrKey": "Pattern" | ||
}, | ||
"SONIC_EVENTS_BGP_NOTIFICATION_VALID": { | ||
"desc": "VALID BGP NOTIFICATION." | ||
}, | ||
"SONIC_EVENTS_BGP_ZEBRA_NO_BUFF_INCORRECT_TIMESTAMP": { | ||
"desc": "ZEBRA_NO_BUFF_EVENT_INCORRECT_TIMESTAMP.", | ||
"eStrKey": "Pattern" | ||
}, | ||
"SONIC_EVENTS_BGP_ZEBRA_NO_BUFF_VALID": { | ||
"desc": "VALID ZEBRA_NO_BUFF EVENT." | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/sonic-yang-models/tests/yang_model_tests/tests/sonic-events-dhcp-relay.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"SONIC_EVENTS_DHCP_RELAY_DHCP_RELAY_DISCARD_INCORRECT_IFNAME": { | ||
"desc": "DHCP_RELAY_DISCARD_EVENT_INCORRECT_IFNAME failure.", | ||
"eStrKey": "Pattern" | ||
}, | ||
"SONIC_EVENTS_DHCP_RELAY_DHCP_RELAY_DISCARD_INCORRECT_TIMESTAMP": { | ||
"desc": "DHCP_RELAY_DISCARD_EVENT_INCORRECT_TIMESTAMP failure.", | ||
"eStrKey": "Pattern" | ||
}, | ||
"SONIC_EVENTS_DHCP_RELAY_DHCP_RELAY_DISCARD_VALID": { | ||
"desc": "VALID DHCP_RELAY_DISCARD EVENT." | ||
}, | ||
"SONIC_EVENTS_DHCP_RELAY_DHCP_RELAY_DISPARITY_INCORRECT_VLAN": { | ||
"desc": "DHCP_RELAY_DISPARITY_EVENT_INCORRECT_VLAN failure.", | ||
"eStrKey": "Pattern" | ||
}, | ||
"SONIC_EVENTS_DHCP_RELAY_DHCP_RELAY_DISPARITY_INCORRECT_DURATION": { | ||
"desc": "DHCP_RELAY_DISPARITY_EVENT_INCORRECT_DURATION failure.", | ||
"eStrKey": "InvalidValue" | ||
}, | ||
"SONIC_EVENTS_DHCP_RELAY_DHCP_RELAY_DISPARITY_INCORRECT_TIMESTAMP": { | ||
"desc": "DHCP_RELAY_DISPARITY_EVENT_INCORRECT_TIMESTAMP failure.", | ||
"eStrKey": "Pattern" | ||
}, | ||
"SONIC_EVENTS_DHCP_RELAY_DHCP_RELAY_DISPARITY_VALID": { | ||
"desc": "VALID DHCP_RELAY_DISPARITY EVENT." | ||
} | ||
} |
Oops, something went wrong.
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.
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.
Mixing tabs and spaces indentation.
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.
We will take it in the next PR.