Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-128

onData(Tree)Change is not invoked if IID contains ukneyed list

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • None
    • Binding runtime
    • None
    • Operating System: All
      Platform: All

    • 5297

      DataChangeListener or DataTreeChangeListener does not get data change event if is registered with instance-identifier containing unkeyed list.

      Yang used in cases below:
      container con1 {
      list list1 {
      key "list1key";
      leaf list1key

      { type string; }

      list unkeyed-list {
      leaf this-is-not-key

      { type string; }

      list list2 {
      key "list2key";
      leaf list2key

      { type string; }

      }
      }
      }
      }

      Case 1:
      DataTreeChangeListener is registered with IID:
      InstanceIdentifier.builder(Con1.class).child(List1.class).child(UnkeyedList.class).child(List2.class).build();
      The listener does not get notification when instance of list2 is created.

      Case 2:
      DataTreeChangeListener is registered with IID:
      InstanceIdentifier.builder(Con1.class).child(List1.class).child(UnkeyedList.class).build();
      The listener does not get notification when instance of list2 or instance of unkeyed-list are created.

      CONTROLLER-1:
      InstanceIdentifier.builder(Con1.class).child(List1.class).build();
      The listener does not get notification when instance of list2 or instance of unkeyed-list are created but it get notification when instance of list1 is created.

      Also DataObjectModification representing unkeyed-list never contains modified children.

            Unassigned Unassigned
            msunal@cisco.com Martin Sunal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: