Ask Your Question
0

config REST API not working!

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

balaji1432 gravatar image

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

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

http://127.0.0.1:8181/restconf/config...

the operational REST API works!!

i have installed the following features:

odl-l2switch-switch-ui

odl-dlux-all

odl-restconf

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
0

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

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

Comments

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 -0700 )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 -0700 )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 -0700 )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 -0700 )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 -0700 )edit
0

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

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.

cheers

edit flag offensive delete publish link more

Comments

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

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

Stats

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

Seen: 94 times

Last updated: Jun 06 '16