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

JSONCodecFactory NPE

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 4969

    Description

      Testing PCEP Rpc's we get NPE when using Json, same rpc have correct behavior when using XML. Using master branch ( Be )

      https://jenkins.opendaylight.org/releng/view/bgpcep/job/bgpcep-csit-1node-periodic-throughpcep-only-beryllium/

      Steps for reproduce the bug.
      Run odl with features odl-bgpcep-pcep-all, odl-restconf-noauth

      RPC Tested are
      http://localhost:8181/restconf/operations/network-topology-pcep:add-lsp
      http://localhost:8181/restconf/operations/network-topology-pcep:remove-lsp
      http://localhost:8181/restconf/operations/network-topology-pcep:update-lsp

      XML used can be found
      https://wiki.opendaylight.org/view/BGP_LS_PCEP:Programmer_Guide

      JSON

      delete

      {
      "input" :

      { "node" : "pcc://127.0.0.1", "name" : "update-tunel", "network-topology-ref": "/network-topology:network-topology/network-topology:topology[network-topology:topology-id=\"pcep-topology\"]" }

      }

      update/add

      {
      "input": {
      "node": "update-tunel",
      "name": "lsp_test",
      "network-topology-ref": "/network-topology:network-topology/network-topology:topology[network-topology:topology-id=\"pcep-topology\"]",
      "arguments": {
      "odl-pcep-ietf-stateful07:lsp" :

      { "delegate" : "true", "administrative" : "true" }

      ,
      "endpoints-obj": {
      "ipv4":

      { "source-ipv4-address": "192.168.0.1", "destination-ipv4-address": "192.168.0.4" }

      },
      "ero" : {
      "subobject" : [
      {
      "loose" : "false",
      "ip-prefix" :

      { "ip-prefix" : "192.168.99.2/32" }

      },
      {
      "loose" : "false",
      "ip-prefix" :

      { "ip-prefix" : "192.168.0.4/32" }

      }
      ]
      }
      }
      }
      }

      Attachments

        Issue Links

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

          Activity

            People

              pkajsa Peter Kajsa
              cdgasparini Claudio David Gasparini
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: