Ask Your Question

Connecting a Device with the Opendaylight via Netconf

asked 2015-07-09 03:13:12 -0700

AbhishekChhabra gravatar image

updated 2015-07-09 03:29:25 -0700


I am trying to connect a router I have with the opendaylight controller(Helium) via netconf. I have done the following steps:

1.Obtained the yang Configuration file from the router and placed it under the Cache/schema folder in //odl-controller/opendaylight/distribution/opendaylight/target/distribution.opendaylight-osgipackage/opendaylight/ though the Cache/schema didn't come up already after the build so I created these Cache/schema folder and kept the yang file.

2.Configured the 99-netconf-connector.xml with the device details.

Now I am trying to post a URL http://localhost:8181/restconf/operations/opendaylight-inventory:nodes/node/mynewdevice/yang-ext:mount/configuration:get-system-information

While "mynewdevice" being the node name of my device from 99-netconf-connector.xml. it gives me an error

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<errors xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf">
        <error-message>URI has bad format</error-message>

Hoping for Help. Thanks in advance.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-09-02 03:15:05 -0700

harsharya91 gravatar image
  1. The folder should be cache/schema rather than Cache/schema. If you run the for first time the directories will be created itself. You might need to run the script with root permission or sudo.
  2. http://localhost:8080/restconf/operational/opendaylight-inventory:nodes/node/mynewdevice
    It will list yang capabilities associated with this device. Check if your yang module capabiliy is listed here.
  3. http://localhost:8080/restconf/operations/opendaylight-inventory:nodes/node/mynewdevice/yang-ext:mount/
    It will list the rpc's available with your device. Check if you rpc is getting listed there.
  4. If RPC is listed in available RPC's, The issue can be with you Header. you need to set Content-Type to application/xml and use POST method to execute the RPC.
edit flag offensive delete publish link more
Login/Signup to Answer


Asked: 2015-07-09 03:13:12 -0700

Seen: 560 times

Last updated: Sep 02 '15