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


REST API in Helium-Karaf not giving output

asked 2014-11-05 08:59:34 -0700

bhargavi gravatar image

updated 2014-11-05 09:00:18 -0700

Hi All,

We are using distribution-karaf-0.2.0-Helium of opendaylight.Added restconf and l2switch-all features.Created a topology(3 switches,2 hosts) using mininet under that controller.pinging between hosts is also happening but not able to see the topology information in the REST APIhttp://localhost:8080/controller/nb/v2/topology/default/

Can anyone please let me know whether REST APIs in hydrogen release can be accessed in helium or not. If not,what are the REST APIs available in Helium release to access the topology information.

Thanks in advance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-11-05 10:59:33 -0700



First thing is the RESTCONF interface is the REST interface into the MD-SAL, the link you provide above is API into the AD-SAL. Have a look at Open Daylight Northbound_API

Right now you're missing a feature like the AD-SAL northbound and the compatibility feature

  • odl-adsal-compatibility This allow MD-SAl and AD-SAL apps to talk to each other

  • odl-adsal-all This load up the AD-SAL part of the controller where the AD-SAL topology API is

Also i highly recommend you have a look at the RESTCONF topology information (I believe this the link)

edit flag offensive delete publish link more


Thank you so much Chris O'Shea.It really helped me a lot.After installing odl-adsal-compatibility and odl-adsal-all fetaures,I am able to get the topology information except I need to install any other feature to get hosts information.

bhargavi ( 2014-11-07 00:14:10 -0700 )edit

That Host API was using the old Host tracer code, this wasn't put into helium, it was replaced by the host tracer in L2switch. for more information on how to access that.

Chris O'Shea ( 2014-11-07 14:49:44 -0700 )edit

Then no northbound AD-SAL REST API can give the host information instead of MD-SAL restconf APIs?

bhargavi ( 2014-11-10 01:30:51 -0700 )edit

No cause i don't believe the compatibility feature between MD-SAL and AD-SAL have that function for host tracker.

Chris O'Shea ( 2014-11-10 10:21:51 -0700 )edit

Could someone please explain why it is required to have `flow:1` in the URI, if we are querying for the nodes. I am not clear about the parameters to include, I will appreciate your help.

subhash ( 2014-11-12 23:26:22 -0700 )edit
Login/Signup to Answer

Question Tools



Asked: 2014-11-05 08:59:34 -0700

Seen: 1,629 times

Last updated: Nov 05 '14