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 write an application to write flow table to a switch

asked 2015-08-24 07:57:37 -0700

zhaojun gravatar image

updated 2015-08-24 07:58:23 -0700

Hi, I want to write an application to send openflow rules to an OVS-based switch. But I donot how to begin.

So I wonder is there a tutorial which describes building such an application step by step.

Many thanks.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-08-24 12:16:42 -0700

I have written one sample rest based application (udp firewall). you can refer it here:

For understanding the md-sal, you can follow: (written by @sniggel) (toaster example)

For the the md-sal based OF application, I would suggest to follow the l2-switch: (for the flow installation)

edit flag offensive delete publish link more



Good examples... +1

Mandeep ( 2015-08-24 23:10:25 -0700 )edit

answered 2015-08-24 10:06:23 -0700

Mandeep gravatar image

Write any simple script in any language and use restconf to send flows.

For example you can reuse most of code from TheCableGuy.

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

Question Tools

1 follower


Asked: 2015-08-24 07:57:37 -0700

Seen: 695 times

Last updated: Aug 24 '15