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


How to get started with my own OpenFlow application

asked 2016-05-08 03:08:42 -0800

kagouros gravatar image


I want to play around writing my own applications. I really want to understand how to start from scratch, what to include in order to have an application that can work on packet in messages and than do something about that.

Googling around I found a lot of tutorials many for the old sal not mdsal architecture. With the archetype described in I got as far as being able to build (but only under Linux Java 1.8 and maven 3.3 on Mac do not build) the basic project and starting Karaf I see that my test implementation is instantiated.

Now I tried including some stuff from l2-switch this compiles but than I get duplication class name errors and my service is never started. Do I need to put something in the YANG-Files or one of the POM files (dependencies?) so this works?

Essentially for starters I want a 'hello packet' message for each packet sent to the controller.

Please help :)


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-06-01 11:56:29 -0800

monicarajasekaran gravatar image

updated 2016-06-01 11:58:02 -0800

Can you post the exact error you have ? If it is not able to find that particular package, you will have to add the dependency to your application's pom.xml file. For example, right now I have this dependency in my application's pom.xml to include openflowplugin api's:

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-05-08 03:08:42 -0800

Seen: 105 times

Last updated: Jun 01 '16