XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Medium Medium
    • New Delhi Release
    • Kohn Release
    • None
    • None

      Implement support for yang instance identifier: https://www.rfc-editor.org/rfc/rfc7950.html#section-9.13

       

      Below is description of bug which created this story:

      Not able to store yang data that contains data of type instance-identifier (https://www.rfc-editor.org/rfc/rfc6020.html#page-133) using Node API.

      Error message:

      {"status":"500 INTERNAL_SERVER_ERROR","message":"Failed to lookup prefix ","details":"Check logs for details."}

      Attached the Error log.

      API Used:

      $ curl -k -H "Content-Type: application/json" -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST http://localhost:8883/cps/api/v1/dataspaces?dataspace-name='E2EDEMO'

      $ curl -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST 'http://localhost:8883/cps/api/v1/dataspaces/E2EDEMO/schema-sets' --form 'file=@"ran-network1.zip"' --form 'schema-set-name="ran-network"'

      $ curl -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST 'http://localhost:8883/cps/api/v1/dataspaces/E2EDEMO/anchors?schema-set-name='ran-network'&anchor-name='11''

      $ curl -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST 'http://localhost:8883/cps/api/v1/dataspaces/E2EDEMO/anchors/11/nodes' --header 'Content-Type: application/json' -d @ran-network-initial-data.json -i

      HTTP/1.1 500 Server Error
      Date: Tue, 09 Aug 2022 10:26:49 GMT
      Set-Cookie: JSESSIONID=node0hhah9t0mh65fxr9xpigcwcqt11.node0; Path=/
      Expires: Thu, 01 Jan 1970 00:00:00 GMT
      Content-Type: application/json
      X-Content-Type-Options: nosniff
      X-XSS-Protection: 1; mode=block
      X-Frame-Options: DENY
      Transfer-Encoding: chunked

      {"status":"500 INTERNAL_SERVER_ERROR","message":"Could not parse Instance Identifier '/ran-network:nearrtric/nearrtric/gnbdufunction:gnbdu/nrcelldu[idnrcelldu='15289']'. Offset: 22 : Reason: (org:onap:ccsdk:features:sdnr:northbound:ran-network?revision=2020-08-06)nearrtric is not correct schema node identifier.","details":"Check logs for details."}

            rajesh.kumar Rajesh kumar
            ahilap ahilap
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: