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

ONE or BASE scoped notification websockets produce 1 notification per ODL reinstall

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • None
    • None
    • netconf
    • None
    • Operating System: All
      Platform: All

    • 6046

    Description

      1. Extract "bare ODL" and run it.
      2. feature:install odl-restconf
      3. feature:install odl-clustering-test-app
      4. feature:install odl-netconf-connector-all
      5. Configure a websocket of scope "BASE" or "ONE" on "/cars:car"
      6. Run the websocket listener on a terminal, listening on the websocket, asking
      it to expect at least 2 messages.
      7. Create a car
      8. You will see a message to pop up on the websocket listener's terminal,
      containing data from your car.
      9. Create another car
      10. No messages on the websocket listener terminal.

      In step 6 post this to create the notification stream:

      {
      "input":

      { "path": "/car:cars", "sal-remote-augment:datastore": "CONFIGURATION", "sal-remote-augment:scope": "ONE" }

      }

      In the step 10 another message shall be seen with data from the other car
      instead of the listener being silent.

      The same happens when you delete the car you just created in step 9.

      When you stop the websocket listener on that terminal, restart the ODL and
      then do steps 5 to 7 again, you won't see any more messages on that terminal.

      If you do the steps in the order 1-4,7,5,6,delete the car created in step 7
      (i.e. you create the car before the notification is created) then you won't
      get any notifications from the websocket.

      The correct behavior is to receive notifications for every "create" and
      "delete" executed on that list.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            jbehran@cisco.com Jozef Behran
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: