Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1555

nested instance identifer values

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Won't Do
    • None
    • None
    • None
    • None
    • karaf 18.3

    Description

      The following instance-identifer value for node osiIf  

      crosses a list element

      whose key my-is-is:name is an intance-identifer ...

      This following encoding seems reasonable as output of a GET,

      in which the single quote characters are escaped

      in the nested instance-idenfier value.

       

      <osiIf  xmlns:my-interfaces="xxx"  
              xmlns:my-is-is="yyy" 
              xmlns:my-routing="zzz">/my-routing:routing/my-routing:control-plane-protocol[my-routing:name='MANAGEMENT-PLANE']/my-is-is:isis/my-is-is:interface[my-is-is:name='/my-interfaces:interfaces/my-interfaces:if[my-interfaces:typeIf=&apos;lan&apos;][my-interfaces:idx=&apos;1&apos;]']</osiIf>

       

      But it is not accepted by opendaylight sw, which raises the following error:

      {
        "errors": {
          "error": [
            {
               "error-tag": "operation-failed",
               "error-info": "java.lang.IllegalArgumentException: Could not parse Instance Identifier '/my-routing:routing/my-routing:control-plane-protocol[my-routing:name='MANAGEMENT-PLANE']/my-is-is:isis/my-is-is:interface[my-is-is:name='/my-interfaces:interfaces/my-interfaces:if[my-interfaces:typeIf='lan'][my-interfaces:idx='1']']'. Offset: 203 : Reason: Precondition must ends with ']'",
               "error-message": "Transaction failed",
               "error-type": "application"
             }
          ]
        }
      }
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            brigam Maurizio Brigandi'
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: