how we could use an ADSAL plugin service inside of an MDSAL plugin ?

asked 2014-09-26 02:49:13 -0800

swarvanusg gravatar image

We are facing a problem while we are trying to get a Service provided by some other plugins written in ADSAL to a bundle written in MDSAL.

The ADSAL plugin provides some service (say 'XYZ'). We have tested that the service 'XYZ' could be used from another plugins written in ADSAL.

Now while we are trying to get the service 'XYZ' inside a MDSAL application using the getSALService or by using getRpcService.. we are facing problems...

For getRpcService: null is being returned in case of getSALService: below error is coming [ERROR] /root/cfetesting/cfe16sep2104/opendaylight/ping/service/src/main/java/org/opendaylight/controller/ping/service/impl/[38,56] error: method getSALService in interface ConsumerContext cannot be applied to given types;

edit retag flag offensive close merge delete



You could retrieve AD-SAL service via OSGI BundleContext, but MD-SAL and AD-SAL uses different concepts for identification of nodes (AD-SAL is more Openflow centric), so that maybe will require additional steps to use. Could you be more specific which service you want to use?

Tony Tkacik ( 2014-11-14 06:26:26 -0800 )edit