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

YangInstanceIdentifierDeserializer fails on choice nodes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • 2.0.8
    • None
    • restconf-nb
    • None

      I tested below Model and it failed, reason existing Code is not good enough to find Path for Choice Node, while loop in YangInstanceIdentifierDeserializer >> nextContextNode(…) below makes Current Null and throws Null Pointer Exception

      Which means MIX Node type like Choice handling is not proper

       

       container interfaces {
         choice interfaces-type {
           container type-gigabyte {
             action reset {
               input {
                 leaf reset-at {
                   type string;
                   mandatory true;
                 }
               }
             }
           }
         }
       }
      

       

      Code Snippet where it fails:

      YangInstanceIdentifierDeserializer >> In method  : nextContextNode(…) 

       

      while (current.isMixin()) {
        path.add(current.getIdentifier());
        current = current.getChild(qname);
        variables.setCurrent(current);
      }
      
      return current;
      

       

       

            rovarga Robert Varga
            ajay.dp001 Ajay Deep Singh
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: