Ask Your Question
0

How to run controller with openflowplugin (OF13)?

asked 2015-03-06 03:47:37 -0700

Sania gravatar image

Hi,

I want to run cbench against controller and collect benchmarking data. I got the latest controller code from master branch on git and built it. I want to work with OF1.3 for which I needed to build openflowplugin and openflowjava projects. I pulled down these two projects and built them using maven. I installed all the features related to yangtools, md-sal, netconf and restconf in controller using karaf. In openflowplugin I enabled the above features and odl-openflowplugin-all and odl-openflowjava-all as well. Now when I run controller using karaf, cbench can't connect to it because there's no openflow plugin in controller project. So my question is how can I connect controller to the openflowplugin and openflowjava?
Additional Information:
I tried running openflowplugin project alone (in openflowplugin/distribution/karaf/target/assembly/bin/ using ./start) but it gives me 'Permission denied' error. (./karaf works fine)
I've also tried building controller from stable helium branch which has old openflow (OF1) which works fine but since I need OF13 so if there's any way to replace this old OF with OF1.3, that can work too.
I need to work with source code so I can not use pre-built distributions.

edit retag flag offensive close merge delete

Comments

@Sania, You should run karaf of openflowplugin and install required features and you mentioned. For the part 'Permission denied',try running it from root user,might work. In my knowledge Odl controller project does not have openflowplugin project in it.

faizan ( 2015-03-06 09:13:33 -0700 )edit

If I run openflowplugin project only, I shouldn't expect any responses in Cbench, right? Don't I need both controller and openflowplugin projects to get results from Cbench?

Sania ( 2015-03-06 10:51:52 -0700 )edit

Sounds like a solution, will try! Thanks!

Sania ( 2015-03-07 00:09:36 -0700 )edit

@Sania Do tell me the result for my understanding too. :)

faizan ( 2015-03-07 19:48:47 -0700 )edit

Since you asked for results so I compiled the controller, openflowjava, openflowplugin and l2switch. Then I compiled integration project (with -nsu flag) and enabled desired features in karaf. Cbench test is working fine and I made some changes in code (just for testing) which are reflected in logs!

Sania ( 2015-03-09 03:15:13 -0700 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-03-06 20:08:41 -0700

faizan gravatar image

@Sania, Hi, I dont know about Cbench(will look around :-) ), and you can try one thing,build the source code of projects you want (ie controller, openflowplugin etc ) followed build of integration project with "-nsu" flag, it will pick locally build jars. Hope it works :)

edit flag offensive delete publish link more
0

answered 2015-03-06 10:08:01 -0700

jamoluhrsen gravatar image

Hi Sania,

These are the features/configs that I use when collecting cbench performance numbers:

   opendaylight-user@root>feature:install odl-openflowplugin-flow-services
   opendaylight-user@root>feature:install odl-openflowplugin-drop-test 
   opendaylight-user@root>dropallpacketsrpc on
   DropAllFlows transitions to on
   opendaylight-user@root>log:set ERROR

I normally take the entire OpenDaylight distribution that is built from the integration project. Like this one

Hope it helps.

edit flag offensive delete publish link more

Comments

I guess what you're suggesting is a pre-built snapshot. I can't use that as I need to modify the source code. And on a side note, can I use integration project (and build it myself) if I need to access source code of different ODL projects?

Sania ( 2015-03-06 11:27:22 -0700 )edit

Yes, that would be way to go. Clone integration repo and build it yourself. Any project that you need source code for, clone and compile it before you compile integration.

Vishal Thapar ( 2015-03-08 21:36:13 -0700 )edit

I did just that and it works, thanks!

Sania ( 2015-03-09 03:23:37 -0700 )edit

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
3 followers

Stats

Asked: 2015-03-06 03:47:37 -0700

Seen: 565 times

Last updated: Mar 06 '15