-
Bug
-
Resolution: Unresolved
-
High
-
None
-
2.0.14, 5.0.4
-
None
-
None
opendaylight-user@root> feature:install odl-restconf-nb odl-toaster
$ curl -X GET http://localhost:8181/rests/data/ietf-restconf-monitoring:restconf-state/streams
$ curl -X GET http://localhost:8181/rests/data/ietf-restconf-monitoring:restconf-state/streams
...
{
"access": [
,
{ "encoding": "XML", "location": "http://localhost:8181/crosswork/nbi/optima/v1/restconf/notif/notification-stream/toaster:toasterRestocked" } ],
"description": "Indicates that the toaster has run of out bread.",
"name": "toasterRestocked",
"replay-log-creation-time": "2023-07-13T15:40:18-07:00",
"replay-support": true
},
...
$ curl -N http://localhost:8181/rests/notif/notification-stream/toaster:toasterRestocked/JSON
: ping
In another window:
$ curl -H "Content-Type: application/json" -X POST http://localhost:8181/rests/operations/toaster:restock-toaster -d '{"input":{"amountOfBreadToStock":1}}'
The above RPC produces notifications on toaster:toasterRestocked SSE stream, however if I join with another listener, it never recives previously produced notifications. "replay-support" is true, however there is seem to be no way to actually replay notifications