Ask Your Question
0

RESTCONF and AD-SAL question

asked 2014-12-02 08:46:25 -0700

Hi I had written a Python REST api based application in Hydrogen release which I am trying to get it working with Helium. I am having difficulties since the earlier REST api calls are not working. I have gone through Helium userguide as well as few questions related to this same topic in earlier mail threads here. Following are some questions: (sorry for the long list)

In this question(https://ask.opendaylight.org/question/1137/how-to-know-all-available-northbound-rest-apis/), it was mentioned to install adsal-compat and adsal-all to get REST api with AD-SAL working. I installed it. I see that connection manager rest apis work, but switch manager, topology manager, flow manager rest api does not work. I get 404 error. Am I missing anything else?

In the helium user guide, its mentioned that Nodes, Yang UI, Topology uses MD-SAL and Connection manager, Container, Network, Flows uses AD-SAL. As i understood, RESTconf is mainly for MD-SAL, how does RESTconf work for all modules in helium in that case?

I looked at this link(http://localhost:8181/apidoc/explorer/index.html) to get list of RESTconf apis. Then I looked at this flow example link(https://wiki.opendaylight.org/view/OpenDaylightOpenFlowPlugin:EndtoEnd_Flows) where inventory module was used to fetch flowstatistics. In Hydrogen release, REST apis were classified clearly into modules like switchmanager, topologymanager, flow etc. Does similar module based breakup apply with RESTconf as well?

From(http://localhost:8181/apidoc/explorer/index.html), I tried to use flowstatistics and flowtablestatistics to get flow statistics, I dont see a GET method, I get an error with POST method, was not clear what to input in "value" textbox.

Appreciate your response.

Thanks Sreenivas

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-12-03 16:24:43 -0700

Colin Dixon gravatar image

You are correct RESTCONF is used to access the MD-SAL, not the AD-SAL.

The API doc explorer that you're using is the right place to go to find all the API calls. In general at least GET method should work from there.

The flows and flow tables are located under the "opendaylight-inventory" RESTCONF module which you can access by browsing to this: http://localhost:8181/restconf/operational/opendaylight-inventory:nodes/

In general, RESTCONF is divided into modules based on the YANG modules that create the calls.

edit flag offensive delete publish link more

Comments

Thanks Colin. After some struggle, was able to get most of the REST apis working with RESTCONF. Found this link to be useful(https://wiki.opendaylight.org/view/OpenDaylight_Controller:RESTCONF_Northbound_APIs). Since structure has changed fully between REST and RESTCONF, I needed to redo the complete parsing.

Sreenivas ( 2014-12-04 05:41:10 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
2 followers

Stats

Asked: 2014-12-02 08:46:25 -0700

Seen: 975 times

Last updated: Dec 03 '14