Skip to content

Streaming structured events implementation#10801

Closed
renukamanavalan wants to merge 92 commits intosonic-net:masterfrom
renukamanavalan:syslog_telemetry_shared
Closed

Streaming structured events implementation#10801
renukamanavalan wants to merge 92 commits intosonic-net:masterfrom
renukamanavalan:syslog_telemetry_shared

Conversation

@renukamanavalan
Copy link
Copy Markdown
Contributor

@renukamanavalan renukamanavalan commented May 10, 2022

Why I did it

Implementation of HLD PR #954
Depends on swsscommon PR #649 and corresponding submodule update.

How I did it

How to verify it

With this PR in, you flap BGP and use events_tool to see the published events.
With telemetry PR #111 in and corresponding submodule update done in buildimage, one could run gnmi_cli to capture BGP flap events.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@liushilongbuaa
Copy link
Copy Markdown
Contributor

/azp run Azure.sonic-buildimage

@qiluo-msft
Copy link
Copy Markdown
Collaborator

Please add unit tests.

@zbud-msft zbud-msft requested a review from kcudnik July 25, 2022 17:56
@kcudnik
Copy link
Copy Markdown
Contributor

kcudnik commented Jul 29, 2022

please resolve conflicts and build issues

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented Aug 2, 2022

for(long unsigned int j = 3; j < params.size(); j++) {
auto delimPos = params[j].find(':');
string resultValue = matchResults[j + 1].str();
if(delimPos == string::npos) { // no lua code
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we pre-parse this also as
struct {
string param_name;
string lua_code;
} param_list[]

You may simply check "if params[i].lua_code.empty()) { ... } else { use lua code}

renukamanavalan and others added 6 commits August 6, 2022 02:29
* Add python tool to publish events for testing

* Copy events publish tool to /usr/sbin

* Add functionality to read from file

* Add ability to read tag from file and take source as param

* Add changes per peer review

Co-authored-by: Ubuntu <zain@zb-dev-vm.022x1jpnpm4u1iy2d325acts3c.yx.internal.cloudapp.net>
@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Aug 18, 2022

This pull request introduces 2 alerts when merging edfde1e into 5d9a463 - view on LGTM.com

new alerts:

  • 2 for Unused import

@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Aug 18, 2022

This pull request introduces 2 alerts when merging ce3bcd8 into 46ebd06 - view on LGTM.com

new alerts:

  • 2 for Unused import

@renukamanavalan
Copy link
Copy Markdown
Contributor Author

Depends on swsscommon PR #670

@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Aug 25, 2022

This pull request introduces 2 alerts when merging b6cf34b into 83704d9 - view on LGTM.com

new alerts:

  • 2 for Unused import

* Fix PR comments

* Update with PR review comments

* Fix LGTM warnings of publish tool

* Fix bug in unit test

* Change to ip to match yang model

* Add changes per peer review
@renukamanavalan
Copy link
Copy Markdown
Contributor Author

PR #11848 is created. Hence closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants