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 build hello world application

asked 2015-04-17 00:22:51 -0800

rybek0s gravatar image


Some time ago I have decided to start my journey with openDayLight. I want to create sample application that would use/orchestrate OpenFlow 1.3 switches (open vSwitch in mininet).

I have tried going through some of the tutorials that I have found, but each time I have some problems with compilation.

Could somebody tell me which version of the source code should I clone -keeping in mind that I would like to use OF 1.3 (so that both the code and the tests would compile) and what archetype should I use to create a very simple application (hello world)?

As for now I have tried few options, but always I had some problems (either test failures or after using archetype from the tutorial, it didn't compile).

Do you know any up to date tutorial on how to make first steps with OpenDayLight?

BR, Simon

edit retag flag offensive close merge delete


tomlv ( 2015-04-17 08:43:32 -0800 )edit

I have seen this blog already, but it looked to me as prepared for the previous version of openDayLight (based on Felix and not Karaf). Thanks for the link, this is for sure a nice lecture (especially since this author has more of them ;) )!

rybek0s ( 2015-04-17 23:10:49 -0800 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2015-04-17 05:50:23 -0800

gyanesh gravatar image

edit flag offensive delete publish link more


Thanks, I have started doing the MD-SAL:Startup tutorial and finally it works (if I add -DskipTests while building the controller ;) )

rybek0s ( 2015-04-17 11:24:24 -0800 )edit

It is good that you are able to start with the ODL. Here are some tips you can use during "mvn install" -DskipTests=true : skip test cases -Dcheckstyle.skip=true : skip check style checking during compilation -nsu : skip updating snapshots

gyanesh ( 2015-04-17 12:48:17 -0800 )edit

Ok, now I know why my previous attempts to do this tutorial failed. Whenever I set 'artifactId' to something that contains capital letter, build compilation fails. Something worth keeping in mind ;)

rybek0s ( 2015-04-17 23:49:35 -0800 )edit

As a second comment to the toaster tutorial, when the build fails with information that the error is in 103 line of features pom file, simply add the: <version>1.5.0-SNAPSHOT</version> to the dependency declaration of features-test artifact. This worked for me ;) Hope somebody will find this helpful.

rybek0s ( 2015-04-18 09:17:37 -0800 )edit

answered 2015-04-20 06:56:59 -0800

runamuck gravatar image

I want to create sample application that would use/orchestrate OpenFlow 1.3 switches (open vSwitch in mininet).

You may have an easier time with a quick proof of concept vs. a "hello world." Download the most recent stable release, unzip and install the necessary modules. Then, use the RESTCONF to create and view flows.

Lesson learned: Use postman instead of the DLUX "flow menu" interface, since DLUX has problems

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

Question Tools



Asked: 2015-04-17 00:22:51 -0800

Seen: 611 times

Last updated: Apr 20 '15