Skip to content
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 notifications to CommunityRestConf #1745

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

ihrasko
Copy link
Collaborator

@ihrasko ihrasko commented Feb 1, 2024

This PR adds support for listening on device notifications over SSE into CommunityRestConf module.

The functionality requires that application configuration is using base path set to rests as is OpenDaylight default due to https://jira.opendaylight.org/browse/NETCONF-1218.

When correctly configured all applications based on CommunityRestConf can be used for notifications listening. For now we recommends to use lighty-community-restconf-netconf-app.

Register servlet for notifications on <basePath>/notif for both
websockets and SSE in CommunityRestConf module.

Note that lighty.io provides no configurable option to choose from
websockets or SSE. SSE is hard-coded default.

Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
Because base path is hard-coded in ODL, we need to make this
application use /rests base.

This commit should be reverted after NETCONF-1218 is resolved
and implemented.

Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
@ihrasko ihrasko merged commit 1a5e2c2 into PANTHEONtech:18.x Feb 1, 2024
6 checks passed
@ihrasko ihrasko deleted the 18.x-notifications branch February 1, 2024 14:53
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.

None yet

2 participants