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

1

REST API in Helium-Karaf not giving output

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

bhargavi gravatar image

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

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
1

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

Moderators

Hey,

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) http://127.0.0.1:8181/restconf/operational/network-topology:network-topology/topology/flow:1/

edit flag offensive delete publish link more

Comments

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 hosts.do I need to install any other feature to get hosts information.

bhargavi ( 2014-11-07 00:14:10 -0800 )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. https://wiki.opendaylight.org/view/L2_Switch:Helium:Developer_Guide#Developer.27s_Guide_for_Address_Tracker for more information on how to access that.

Chris O'Shea ( 2014-11-07 14:49:44 -0800 )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 -0800 )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 -0800 )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 -0800 )edit
Login/Signup to Answer

Question Tools

Follow
3 followers

Stats

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

Seen: 1,573 times

Last updated: Nov 05 '14