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 #1703

Merged
merged 2 commits into from
Feb 1, 2024
Merged

Conversation

Tobianas
Copy link
Contributor

@Tobianas Tobianas commented Jan 12, 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 6b2b5cb into PANTHEONtech:main Feb 1, 2024
6 checks passed
@Tobianas Tobianas deleted the mainNotif branch April 30, 2024 08:43
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.

2 participants