Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-1085

Restconf replay notifications are not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High 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/stream/notification-stream/toaster:toasterRestocked/JSON?start-time=2023-07-13T22:40:18.00000Z

      $ curl -X GET http://localhost:8181/rests/data/ietf-restconf-monitoring:restconf-state/streams

      ...
      {
      "access": [

      { "encoding": "JSON", "location": "http://localhost:8181/crosswork/nbi/optima/v1/restconf/notif/notification-stream/toaster:toasterRestocked/JSON" }

      ,

      { "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

            Unassigned Unassigned
            hjslgfsd7 Valentin Mayamsin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: