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

Missing message-id in error reply when namespace prefix is used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Oxygen
    • Oxygen
    • netconf
    • None

      I am using Honeycomb with ncclient.

      Request example

      <?xml version="1.0" encoding="UTF-8"?>
      <nc:rpc xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:0a7afdc8-359d-435b-b8cd-9458455b7e5e">
      <nc:commit/>
      </nc:rpc>
      

      Reply:

      <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
      <rpc-error>
      <error-type>application</error-type>
      <error-tag>operation-failed</error-tag>
      [...]
      </rpc-error>
      </rpc-reply>
      

      It is causing troubles for ncclient, because it cannot be matched to request:

      DEBUG:ncclient.transport.ssh:Broke out of main loop, error=OperationError("Could not find 'message-id' attribute in <rpc-reply>",)
      DEBUG:ncclient.transport.session:dispatching error to <ncclient.operations.rpc.RPCReplyListener object at 0x7fe7de4b3810>
      DEBUG:ncclient.transport.session:dispatching error to <ncclient.transport.session.NotificationHandler object at 0x7fe7de4b37d0>
      INFO:ncclient.operations.rpc:Requesting 'CloseSession'
      [...]
      

            mgradzki Marek Gradzki
            mgradzki Marek Gradzki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: