[NETCONF-623] Impossible to receive notifications via RESTCONF RFC8040 implementation Created: 30/May/19  Updated: 10/Aug/21  Resolved: 02/Jul/19

Status: Resolved
Project: netconf
Component/s: restconf-nb
Affects Version/s: Neon, Neon SR1, Neon SR2
Fix Version/s: Sodium

Type: New Feature Priority: Medium
Reporter: Valentin Mayamsin Assignee: Jaroslav Tóth
Resolution: Done Votes: 0
Labels: rfc8040, websocket,
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File Data-Change-Events (RFC 8040).postman_collection.json     File Temporary_fix.patch     File Yang-Notification-Streams (RFC 8040).postman_collection.json    
Issue Links:
Relates
relates to NETCONF-182 Current websocket implementation does... Resolved
relates to NETCONF-300 unauthorized websocket client is able... Resolved
relates to NETCONF-801 SSE streaming does not work Resolved

 Description   

WebSocket notifications broken? WebSocket server is not even started for RFC8040 implementation.



 Comments   
Comment by Robert Varga [ 06/Jun/19 ]

Notifications were never implemented for RFC8040 because their setup is incorrect w.r.t. security policies. There is ongoing work here: https://git.opendaylight.org/gerrit/#/c/81424/

Comment by Jaroslav Tóth [ 19/Jun/19 ]

it should be done, you can test it with help from these Postman collections (odl-toaster feature should be installed):

as a client, you can use your favourite tool, but I have also created testing tool for it - https://git.opendaylight.org/gerrit/c/81648/; for example to listen to data-change-events from the first Postman collections, use this command:

java -jar websocket-client-1.10.0-SNAPSHOT-executable.jar -b admin:admin -s ws://127.0.0.1:8181/rests/data-change-event-subscription/toaster:toaster/datastore=CONFIGURATION/scope=SUBTREE/JSON

with enabled TLS on RESTCONF you can use (of course, adjust .keystore and .truststore paths and passwords):

java -jar websocket-client-1.10.0-SNAPSHOT-executable.jar -b admin:admin -s wss://localhost:8443/rests/data-change-event-subscription/toaster:toaster/datastore=CONFIGURATION/scope=SUBTREE/JSON -kpath .keystore -kpass 123456 -tpath .truststore -tpass 123456

also note that there are next couple of issues that should be directed in the future - NETCONF-627

Comment by Valentin Mayamsin [ 05/Sep/19 ]

Any plans on back-porting these changes into Neon?

Generated at Wed Feb 07 20:15:29 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.