Ask Your Question
0

Question: AD-SAL and Yang Tools

asked 2014-05-12 18:02:20 -0700

zedyuang gravatar image

updated 2014-11-25 12:48:52 -0700

Hi all,

I am new to opendaylight and I have few question over AD-SAL and Yang Tools. I hope I could get the answers from you guys:

  1. Since I didn't find the AD-SAL module in ODL source code, I want to know what is the exact definition of AD-SAL and does AD-SAL work in Opendaylight (Could you give an AD-SAL example?) ?
  2. As I know, Yang tool is used to model APIs for Plugins, Services in MD-SAL. However, except APIs, how does ODL model the other methods in implementation class ? ( does it use UML?)

Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2014-05-13 01:37:24 -0700

Moderators

updated 2014-05-13 12:24:12 -0700

1) AD-SAL stands for Application Driven Service Abstraction Layer. Intent of this layer is to provide abstracted view of all the south bound to all the northbound application irrespective of the heterogeneity of the underlying platform its managing. You can get more details at following URL https://wiki.opendaylight.org/view/OpenDaylight_Controller:AD-SAL

Source code for AD-SAL is present in ~/controller/opendaylight/sal/ directory.

If you want to explore the AD-SAL based application, you can start from sample application mentioned at the following URL

https://wiki.opendaylight.org/view/OpenDaylightController:SampleApplications

2) No, Yang tool is not based on UML, it is a tool for generating java source code from models defined in Yang modelling language. Using yang modelling language you can define rpc's , notifications (APIs) and data models. By "other methods" you mean non-api methods that consumes these API's or utility methods, these methods you need to define in your own application java class. You can get more details about yang and yang tool at the following URL

https://wiki.opendaylight.org/view/YANG_Tools:Main

If you explore following sample applications it will give you more clarity on how you can consume yang modelling and MD-SAL for developing your own application:

https://wiki.opendaylight.org/view/Ping

https://wiki.opendaylight.org/view/OpenDaylightController:MD-SAL:ToasterTutorial

https://wiki.opendaylight.org/view/OpenDaylightController:MD-SAL:MD-SALApp_Tutorial

and if you want to develop your own application you can start from the archtype module

https://wiki.opendaylight.org/view/OpenDaylightToolkit:MD-SAL-SimpleArchetype

edit flag offensive delete publish link more

Comments

I am really appreciate for your information. Actually, I wanna do some extensions for ODL and I try to make my code consistent with ODL, so what kind of modeling tool does ODL use to describe a class or interface ( other than the APIs provided by Yang tools code generator )? For example the method "pingHost" in PingImpl.java. (URL https://wiki.opendaylight.org/view/Ping ) Btw, AD-SAL should stand for Api-Driven. https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:FAQ Thanks.

zedyuang ( 2014-05-13 21:04:30 -0700 )edit

hi,Anil Vishnoi; could you give me your E-mail ,I want to ask you question about slice topology.

wangruxun ( 2015-06-01 06:50:05 -0700 )edit

slice openflow topology.

wangruxun ( 2015-06-01 06:50:31 -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
2 followers

Stats

Asked: 2014-05-12 18:02:20 -0700

Seen: 410 times

Last updated: May 13 '14