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

yang-patch in Aluminium-SR1 does not work

    XMLWordPrintable

Details

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

    Description

      yang-patch does not work. In response I get

      It does not work.

      The request was  PATCH

      url:  [http://orion:8181/rests/data/network-topology/topology=topology-netconf/node=123a/yang-ext:mount/ipi-interface:interfaces/interface=eth2/ipi-if-ip:ipv4
      ]

      body:


          "ietf-restconf:yang-patch": {
              "patch-id": "edit1",
              "comment": "no-comment",
              "edit": [
                  {
                      "edit-id": "edit1",
                      "operation":"merge",
                      "target":"/ipi-if-ip:config",
                      "value": {
                          "ipi-if-ip:config": 

      Unknown macro: {                         "primary-ip-addr" }

                      }

                  }

              ]

          }

      }
       

      In response I get

      {

          "errors": {

              "error": [

                  

      Unknown macro: {                 "error-type"}

              ]

          }

      }

      The response is caused by exception

      JsonNormalizedNodeBodyReader     | 300 - org.opendaylight.netconf.restconf-nb-rfc8040 - 1.12.1 | Error parsing json input

      java.lang.IllegalStateException: Schema node with name yang-patch was not found under (http://www.ipinfusion.com/yang/ocnos/ipi-interface?revision=2020-12-15)interface.

                      at org.opendaylight.yangtools.yang.data.codec.gson.JsonParserStream.resolveNamespace(JsonParserStream.java:385) ~[bundleFile:?]

      Absolutely the same yang-patch request to the same device works in Magnesium-SR2.

       

      The response is caused by exception

       

      JsonNormalizedNodeBodyReader     | 300 - org.opendaylight.netconf.restconf-nb-rfc8040 - 1.12.1 | Error parsing json input

      java.lang.IllegalStateException: Schema node with name yang-patch was not found under (http://www.ipinfusion.com/yang/ocnos/ipi-interface?revision=2020-12-15)interface.

                      at org.opendaylight.yangtools.yang.data.codec.gson.JsonParserStream.resolveNamespace(JsonParserStream.java:385) ~[bundleFile:?]

       

      Absolutely the same yang-patch request to the same device works in Magnesium-SR2.

      Attachments

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

        Activity

          People

            yevgeny88 Yevgeny Shakhnovich
            yevgeny88 Yevgeny Shakhnovich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: