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

Unwanted update event got when use WriteTransaction.put method if createMissingParents is ture.

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Won't Do
    • None
    • None
    • Binding runtime
    • None
    • Operating System: All
      Platform: All

    • 3103

    Description

      yang model is:
      container cats {
      config true;
      list cat {
      key "id";
      uses cat-struct;
      list baby

      { key "id"; uses cat-struct; }

      }
      }
      rpc add-baby {
      input {
      leaf parent

      { type string; }

      uses cat-struct;
      }
      }

      Register a same listener to listen cat and baby's changes.Scope is BASE.
      If WriteTransaction.put method's createMissingParents argument is false when add-baby, everything seems ok. The listener will only get one event, which is baby created.
      But if createMissingParents is true, the listener will get a cat update event, even if the parent cat node already exsits.
      Version is Helium-SR2.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            chen.xi26@zte.com.cn Leo Cat
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: