Ask Your Question
0

restconf / netconf - Mount point does not exist

asked 2015-05-19 13:12:52 -0700

Hogart gravatar image

New to SDN/Opendaylight and am trying to get a node added using netconf.

I have the XML added into a file called netconfpush which I got from here: https://wiki.opendaylight.org/view/OpenDaylightController:Config:Examples:Netconf#SpawningAdditionalNetconfConnectorsWhiletheControlleris_Running

I can ssh to the device from the controller, and call the netconf sub-system successfully (I get the hello message).

This is the POST I am sending (from the controller itself):

curl -X POST --header "Accept:application/xml" --header "Content-Type:application/xml" --data @netconfpush http://admin:admin@127.0.0.1:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/controller-config/yang-ext:mount/config:modules

And this is the error message I get:

<?xml version="1.0" encoding="UTF-8"
standalone="no"?> <errors
xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf">
    <error>
        <error-type>protocol</error-type>
        <error-tag>unknown-element</error-tag>
        <error-message>Mount point does not exist.</error-message>
    </error> </errors>
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-05-19 14:58:27 -0700

Hogart gravatar image

I think I found the solution. I was using the wrong URL for POST data.

https://developer.cisco.com/site/openSDN/documents/southbound/#mounting-netconf-routers-to-the-cisco-open-sdn-controller

This is the URL I used:

curl -X POST --header "Accept:application/xml" --header "Content-Type:application/xml" --data @netconfpush http://admin:admin@127.0.0.1:8181/restconf/config/opendaylight-inventory:nodes/node/controller-config/yang-ext:mount/config:modules

I can now see my device listed in Nodes in DLUX.

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Stats

Asked: 2015-05-19 13:12:52 -0700

Seen: 984 times

Last updated: May 19 '15