Ask Your Question
0

How to build hello world application

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

rybek0s gravatar image

Hi,

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

Comments

http://www.frank-durr.de/?p=84

tomlv ( 2015-04-17 08:43:32 -0700 )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 -0700 )edit

2 answers

Sort by ยป oldest newest most voted
0

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

gyanesh gravatar image

https://ask.opendaylight.org/question/3114/how-to-modify-heliums-source-code/?answer=3148#post-id-3148

edit flag offensive delete publish link more

Comments

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 -0700 )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 -0700 )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 -0700 )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 -0700 )edit
0

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
2 followers

Stats

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

Seen: 414 times

Last updated: Apr 20 '15