Ask Your Question
0

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
1

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

I have written one sample rest based application (udp firewall). you can refer it here: https://github.com/subh007/opendaylight-scripts-apps/tree/master/python

For understanding the md-sal, you can follow:

https://github.com/sniggel/odl-mdsal-cup-example (written by @sniggel) https://github.com/opendaylight/controller/tree/master/opendaylight/md-sal/samples (toaster example)

For the the md-sal based OF application, I would suggest to follow the l2-switch:

https://github.com/opendaylight/l2switch (for the flow installation)

edit flag offensive delete publish link more

Comments

1

Good examples... +1

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

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

Follow
1 follower

Stats

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

Seen: 262 times

Last updated: Aug 24 '15