Ask Your Question
0

How to create custom REST API in AD-SAL?

asked 2015-09-10 23:57:12 -0700

karthik330 gravatar image

Hi , my ultimate goal is write a REST API which internaly calls the Dijsktra's Implementation function to get shortest path between two hosts. As of now 1. I need to know how to create simple Rest API which will return simple string. 2. I am using Stable-helium Controller version.

-Thanks in Advance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-09-11 01:18:21 -0700

updated 2015-09-11 01:18:54 -0700

AD-SAL is deprecated now, so it is better to switch to MD-SAL.

I would suggest to look into following wiki: https://wiki.opendaylight.org/view/OpenDaylightController:MD-SAL:StartupProject_Archetype

this will give the idea of generating the rest api and consuming it. Then try to explore the l2-switch code-base.

edit flag offensive delete publish link more

Comments

HI Subhash... i got a doubt.. if AD_SAL is going to be deprecated. there should be replacements for the AD_SAL API's in the MD-SAL(RESTCONF). does the MD-SAL API's contain All the API's that are available in AD_SAL.? if it is there can you please help us in getting those API's? Thanks. bala

balaodl ( 2015-09-11 01:39:07 -0700 )edit

It is not like one-to-one replacement, MD_SAL approach is to expose everything as model, now the consumer can populate / query / update the data store.

subhash ( 2015-09-11 01:41:40 -0700 )edit

Thansk Subhash.. If the API replacements are not there.. can you please suggest some work around to achieve the functionalities through the MD_SAL(RESTCONF) API's ? Thanks Bala

balaodl ( 2015-09-11 01:44:06 -0700 )edit

try to follow the any sample application, then you will get the idea of api, rpcs and notification, and if you face any issue post the question here. good luck!!

subhash ( 2015-09-11 01:50:42 -0700 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
1 follower

Stats

Asked: 2015-09-10 23:57:12 -0700

Seen: 68 times

Last updated: Sep 11 '15