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

Cannot create new NETCONF connector with a POST

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Cannot Reproduce
    • None
    • None
    • restconf-nb
    • None

    Description

      I have opendaylight-14.0.0 installed.

      I am following this guide:

      https://docs.opendaylight.org/projects/netconf/en/latest/user-guide.html#southbound-netconf-connector

      I have started karaf with java 11 and done:

      feature:install odl-restconf

      feature:install odl-netconf-topology

      curl -vv -k -X POST --header 'Content-Type: application/json' -u admin:admin http://10.200.120.168:8181/rest/data/network-topology:network-topology/topology=topology-netconf -d @create-new-netconf-connector.json

      • About to connect() to 10.200.120.168 port 8181 (#0)
      • Trying 10.200.120.168...
      • Connected to 10.200.120.168 (10.200.120.168) port 8181 (#0)
      • Server auth using Basic with user 'admin'
        > POST /rest/data/network-topology:network-topology/topology=topology-netconf HTTP/1.1
        > Authorization: Basic YWRtaW46YWRtaW4=
        > User-Agent: curl/7.29.0
        > Host: 10.200.120.168:8181
        > Accept: /
        > Content-Type: application/json
        > Content-Length: 722
        >
      • upload completely sent off: 722 out of 722 bytes
        < HTTP/1.1 401 Unauthorized
        < Cache-Control: must-revalidate,no-cache,no-store
        < Content-Type: text/html;charset=iso-8859-1
        < Content-Length: 436
        <
        <html>
        <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
        <title>Error 401 Unauthorized</title>
        </head>
        <body><h2>HTTP ERROR 401 Unauthorized</h2>
        <table>
        <tr><th>URI:</th><td>/rest/data/network-topology:network-topology/topology=topology-netconf</td></tr>
        <tr><th>STATUS:</th><td>401</td></tr>
        <tr><th>MESSAGE:</th><td>Unauthorized</td></tr>
        <tr><th>SERVLET:</th><td>default</td></tr>
        </table>

      </body>
      </html>

       

      What am I lacking?

       

      //mike

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            eraonel mikael petterson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: