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

RESTCONF rpc() input XML fails while json equivalent succeeds

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • None
    • None
    • netconf
    • None
    • Operating System: Linux
      Platform: All

    • 4353

    Description

      POST to http://localhost:8181/restconf/operations/network-topology:network-topology/topology/topology-netconf/node/47-netconf-device/yang-ext:mount/ietf-netconf:get-config

      <input xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf">
      <source>running</source>
      </input>
      ...
      <error-type>protocol</error-type>
      <error-tag>malformed-message</error-tag>
      <error-message>Error parsing input: Unknown child(ren) node(s) detected, identified by: (urn:ietf:params:xml:ns:yang:ietf-netconf)source, in: container input</error-message>

      Try POST :
      <input xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf">
      <source><running/></source>
      </input>
      ... same error
      <error-type>protocol</error-type>
      <error-tag>malformed-message</error-tag>
      <error-message>Error parsing input: Unknown child(ren) node(s) detected, identified by: (urn:ietf:params:xml:ns:yang:ietf-netconf)source, in: container input</error-message>

      Switch to json:

      { "input": { "source" :

      { "running" : "" }

      } }

      Works!

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jameshall03885@gmail.com James Gregory Hall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: