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


OpenDaylight Application Development for OpenFlow

asked 2016-10-12 03:25:02 -0800

e619003 gravatar image

Hi All,

I am new in OpenDaylight, I want to learn how to write OpenDaylight Application to control my openflow switch, I would like to complete a Traffic Monitor that is able to add flows and get all flows with their information(like : datapath, port, rx-pkts, rx-bytes, rx-erro, tx-pkts, tx-byte, tx-error, etc.)

But I cannot find any tutorial that describes how to build such applications step by step. I do not know how to begin this. So I want to know is there any tutorial that can be refereed for me.


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-10-13 14:15:22 -0800


You don't necessarily need to create your own app for those things, you can use OpenFlowPlugin project of OpenDaylight. Here is the user manual for Boron release.

Hope this helps Alexis

edit flag offensive delete publish link more


Thanks for your advice. I used ryu controller to develop my application before. I could complete the application with only some python codes(Or even only just in a single python file).

e619003 ( 2016-10-18 19:25:36 -0800 )edit

It is not too dificult to develop an easy application by using the method provided by ryu (like add flow function, get switch feature, config meter). But now I need to use OpendayLght as my controller, I cannot find the example that teach me how to develop my application. Thanks for you help.

e619003 ( 2016-10-18 19:25:48 -0800 )edit

Well if you need to CRUD flow, you don't need to write your own app, you can use OpenFlowPlugin feature and push REST calls to program the switch. See this for example on how to proceed.

adetalhouet ( 2016-10-21 05:36:37 -0800 )edit

Thanks for your help. Now I use the REST to develop my application and it is able to work well. In my current situation, It is hard for me to write my application in controller because of some reason. So the method using REST is better for me.

e619003 ( 2016-10-31 20:53:00 -0800 )edit

But I still has problems : (1) Can I use json instead of xml to add flow with REST? (2) How can I use REST to listen the message like error msg, flow_removed msg ? The methods I found are to wirte java in controller, so I would like to know if there is any way to listen the message by REST. Tanks.

e619003 ( 2016-10-31 20:53:41 -0800 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-10-12 03:25:02 -0800

Seen: 62 times

Last updated: Oct 13 '16