How to use IListenDataPacket

asked 2015-06-08 08:05:24 -0700

rybek0s gravatar image

Hi, I am trying to learn a little bit about OpenDayLight. I want to use IListenDataPacket interface to listen to pacet in events. My problem is that all the examples that I have found are using Activator and are prepared for older version of OpenDayLight (not Karaf based). Or at least this is how I understand it.

I have created my sample application using:

mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype -DarchetypeRepository=http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ -DarchetypeCatalog=http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/archetype-catalog.xml

In my goals, I wanted to use AD-SAL. I know that MD-SAL is more popular right now, but if I understand this correctly, it doesn't expose any interfaces. Using MD-SAL will be my next step.

So now for the question. mvn archetype have created a class implementing BindingAwareProvider. How can I use it to register IListenDataPacket handler ? Or should I modify my pom and add Activator class (if yes, do you have any examples of that?

edit retag flag offensive close merge delete

Comments

did you solve this?

g_trelos ( 2015-11-11 05:34:58 -0700 )edit

same situation here... have u solved it?

borasykong ( 2016-05-15 18:50:40 -0700 )edit