Ask Your Question
0

How to get started with my own OpenFlow application

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

kagouros gravatar image

Hi,

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 https://wiki.opendaylight.org/view/Op...Controller:MD-SAL:StartupProject_Archetype 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 :)

Konstantin

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

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

monicarajasekaran gravatar image

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

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:

<dependency> 
  <groupId>org.opendaylight.openflowplugin</groupId> 
  <artifactId>openflowplugin-api</artifactId> 
  <version>0.2.2-SNAPSHOT</version> 
</dependency>
edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

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

Seen: 54 times

Last updated: Jun 01 '16