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

ignore-missing-schema-sources not allowed as input to create-device

XMLWordPrintable

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

      when attempting to mount a device with this operation:

      http://{{controller-ip}}:8181/restconf/operations/netconf-node-topology:create-device
      

      using a body like this (note the ignore-missing-schema-sources element:

      {
          "input": {
              "login-password": {
                  "password": "password",
                  "username": "username"
              },
              "netconf-node-optional:ignore-missing-schema-sources": {
                  "reconnect-time": 5000,
                  "allowed": true
              },
              "netconf-node-topology:node-id": "{{node}}",
              "actor-response-wait-time": 900,
              "concurrent-rpc-limit": 0,
              "host": "{{testtool-ip}}",
              "sleep-factor": 1,
              "port": 17830,
              "tcp-only": false,
              "connection-timeout-millis": 20000,
              "max-connection-attempts": 0,
              "keepalive-delay": 300,
              "schema-cache-directory": "MX2020-19.3R2.9",
              "between-attempts-timeout-millis": 2000,
              "schemaless": false,
              "default-request-timeout-millis": 600000
          }
      }
      

      it is denied with:

      {
          "errors": {
              "error": [
                  {
                      "error-type": "protocol",
                      "error-tag": "malformed-message",
                      "error-message": "Error parsing input: Schema node with name ignore-missing-schema-sources was not found under (urn:opendaylight:netconf-node-topology?revision=2015-01-14)input.",
                      "error-info": "Schema node with name ignore-missing-schema-sources was not found under (urn:opendaylight:netconf-node-topology?revision=2015-01-14)input."
                  }
              ]
          }
      }
      

      I do not see the the netconf-node-topology.yang loaded, which probably explains it.
      Should that module be loaded?

            nikhil.soni.lumina Nikhil Soni
            jluhrsen Jamo Luhrsen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: