Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


config REST API not working!

asked 2016-06-01 13:02:13 -0800

balaji1432 gravatar image

updated 2016-06-01 13:02:56 -0800

I am unable to get the config REST API to work It does not respond to even the basic call below:

the operational REST API works!!

i have installed the following features:




Does anyone know the reason or what i am doing wrong?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2016-06-03 09:23:41 -0800

monicarajasekaran gravatar image

What are you trying to do using REST ? Add flows ?

If so you might want to check the URL. Mine is : http://localhost:8181/restconf/config...

Do you get any response at all ? If there is an error, please post it.

edit flag offensive delete publish link more


hi @monicarajasekaran, No reply the postman client just keeps on trying to send the request. I am trying to use opendaylight to create a qos related application, so i need the current config data to make changes to the topology. Thank you

balaji1432 ( 2016-06-03 09:28:44 -0800 )edit

Do you have problems with other types of REST api calls ? For example, using PUT to add flows to your ovs.

monicarajasekaran ( 2016-06-03 09:34:17 -0800 )edit

i am unable to add anything to the config part, so basically unable to add any new flows etc. I have tried restarting opendaylight ( clean and reinstalled the features required), but it did not help. Thank you

balaji1432 ( 2016-06-03 09:39:11 -0800 )edit

Check these just in case. I used Firefox’s REST Client for PUT operation with settings: URL: http://localhost:8181/restconf/config/opendaylight-inventory-nodes/node/openflow:---/table/0/flow/1 Content-Type: application/xml Accept: application/xml Authentication: admin/admin

monicarajasekaran ( 2016-06-03 14:52:43 -0800 )edit

Also try a mvn clean install and "feature:install odl-restconf odl-l2switch-switch odl-mdsal-apidocs odl-dlux-core" in this exact same order.

monicarajasekaran ( 2016-06-03 14:54:08 -0800 )edit

answered 2016-06-06 14:31:32 -0800

bertrand gravatar image

Hi there,

for the REST interface to work, all you need is the odl-restconf feature.

with just the odl-restconf feature, you should be able to get a response from the server (even a simple "Request could not be completed because the relevant data model content does not exist " response) for any request against the config or operational data store.

try turning on debug logging and make sure that the request is actually getting to the server. If it is not, then you may have a network issue. If it is getting to the server, perhaps you can post the error here.


edit flag offensive delete publish link more


@bertrand, Thanks for the reply. It was a port issue in my case.

balaji1432 ( 2016-06-06 19:33:36 -0800 )edit
Login/Signup to Answer


Asked: 2016-06-01 13:02:13 -0800

Seen: 397 times

Last updated: Jun 06 '16