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


Way to add openflowplugin in controller.

asked 2014-11-18 03:34:45 -0700

As in helium there are different projects controller,dlux etc... I did compile controller code using mvn clean install and ran karaf . Then I did install feature:install odl-adsal-all. I ran my mininet with command " mn --controller=remote,ip= --mac --topo=linear,2 ".

When I do ovs-vsctl show then any of the switch is not connected with controller.

Bridge "s1"
    Controller "ptcp:6634"
    Controller "tcp:"
    fail_mode: secure
    Port "s1"
        Interface "s1"

type: internal

So after analyzing I found , Its is because of openflowplugin , that's why any of the ovs-switch is able to connect to controller. I request you to please give me answer to following questions. 1)Am I missing any feature to install in absence of which ovs is not able to connect with controller. 2)Is it possible to connect openflow-plugin with controller by which ovs can connect to controller.

Thank you so much.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-11-18 08:20:45 -0700



So just building the controller doesn't have any feature for OpenFlow, the only southbound protocol that comes from the controller project is NetConf. You would need to build the OpenFlowPlugin project as well, below is an link to an answer on how to do that.

If you don't wish to edit the code of the controller or the plugin and just wish to play with the API, i recommend just downloading the binary from the page.

edit flag offensive delete publish link more


You mean to say , I have to open two terminal and in first I have to run the controller ---------------------------------------------------------------- controller/opendaylight/distribution/opendaylight-karaf/target/distribution.opendaylight-karaf-1.5.0-SNAPSHOT# ./bin/karaf ----------------------------------------------------------------- And in second openflow plugin -------------------------------------------------------------------------------------------- openflowplugin/distribution/karaf/target/assembly/bin/karaf ------------------------------------------------------------------------------------------- Then openflow plugin and controller will talk with each other and my controller work with openflow plugin. Is my understanding right? I have done the same But I am not able to see that packet is coming controller "(I made a application which which will print "Hello" when packetIn will come to controller by using "receiveDataPacket(RawPacket inPkt)" fun)" . Please direct me .

devverma ( 2014-11-18 22:12:55 -0700 )edit

Well Chris Thank you so much. Downloading prebuilt have solved my problem.

devverma ( 2014-11-19 04:15:58 -0700 )edit

@devverma, You only need one terminal, the controller should only be started in openflowplugin repo. if you start in controller then you won't have all the features. IE in openflowplugin you have OpenFlow and what feature it needs. read a little up on maven for more information.

Chris O'Shea ( 2014-11-19 06:28:37 -0700 )edit

answered 2016-03-14 20:31:51 -0700

aljoby gravatar image

Hello Chris,

Could you help how can I add Openflowplugin to Opendaylight controller?



edit flag offensive delete publish link more


Use ODL- Integration version which has all modules(L2switch,Openflowplugin,controller) . you dont need to add Openflowplugin externally.If you want to change/modify your openflowplugin code,then download the source ,built it after modifying.Built Integration as well to reflect the changes.

karthik330 ( 2016-03-21 23:41:19 -0700 )edit
Login/Signup to Answer

Question Tools



Asked: 2014-11-18 03:34:45 -0700

Seen: 940 times

Last updated: Mar 14 '16