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


Difference between MDSAL and ADSAL

asked 2014-08-12 05:45:16 -0800

I read the document about the MDSAL :

But I am not able to understand the difference properly in the context of application/bundle code writing and designing. I will appreciate if you add some example to explain the difference.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-08-12 23:14:04 -0800

Madhu gravatar image

updated 2014-08-12 23:14:31 -0800

@adisarun's pointer to the SDNHub article is one of the best explanation/differences between the 2 approaches. Also, Please refer to this email in the list on this topic.

As for an example of the usage patterns, you can refer to

  1. this file in OVSDB project which makes use of the AD-SAL forwarding rules manager to program Openflow rules. (Please search for forwardingRulesManager in the above link).

  2. We also use use MD-SAL here to program Flow-rules using the MD-SAL Data-store APIs. Please search for writeFlow in this file and you will find the usage pattern.

Comparing the above 2 will give you a high level overview on usage pattern between these 2 approaches from an application standpoint. If you are looking for AD-SAL vs MD-SAL from a provider (south-bound) development standpoint, it is lot more different and needs a more in-depth explanation.

edit flag offensive delete publish link more


@Madhu, if I want to write a consumer application on the top of MDSAL, then it would be similar to ADSAL, please correct if I am wrong.

subhash ( 2014-08-13 07:09:47 -0800 )edit

It depends again. There are existing adaptors for AD-SAL NSF (Network Service Functions) like SwitchManager, TopologyManager, Routing, etc... that plumbs it to MD-SAL infrastructure too. So, if applications can make use of these ADSAL NSFs, then they can continue to use it with the MDSAL infra. But if a new application is written for MD-SAL, it would look significantly different (as you see in the example I gave in the OVSDB flow programming)

Madhu ( 2014-08-13 10:57:21 -0800 )edit

thanks @Madhu !!

subhash ( 2014-08-13 21:57:40 -0800 )edit

@Madhu, I was facing a problem similar to this. What I was trying is to use an ADSAL plugins service, in a MDSAL consumer. Is it possible ? What is the approach to use any service provided by an ADSAL plugins inside of an MDSAL application.

swarvanusg ( 2014-10-09 22:08:42 -0800 )edit

answered 2014-08-12 15:36:52 -0800

adisarun gravatar image

Read here

edit flag offensive delete publish link more


@adisarun, could you suggest some example (sample code) to understand the difference.

subhash ( 2014-08-12 22:22:01 -0800 )edit

Since the comments section wont take more than 300 characters... Please refer to my answer with examples and pointers to other useful info on this topic.

Madhu ( 2014-08-13 18:50:32 -0800 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-08-12 05:45:16 -0800

Seen: 4,633 times

Last updated: Aug 12 '14