Ask Your Question
0

How to get flow to database, but not pushed until asked...

asked 2016-06-22 12:03:58 -0700

sterdnotshaken gravatar image

If I want to configure say 10 flows that do whatever, but I don't want those flows to be pushed down to a switch unless a packet-in arrives that matches that flow... How would I do this? Can I \ Would I install the flow into the operational datastore vs. the config datastore to accomplish this?

Thanks in advance!!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-06-22 12:16:29 -0700

jamoluhrsen gravatar image

I don't think this functionality exists currently in any of the OpenDaylight projects. You could write your own application to handle this, where you'd configure your flows (in that application) and then that application can register for events with openflowplugin (e.g. packet-in) and when that event comes you would then push your flows to the config datastore for the appropriate switch (aka node).

also, just to clarify, the operational datastore is just a reflection of what currently exists in the network. you don't push/configure anything there. If a switch comes or goes, it will be automatically reflected in the operational datastore. same thing with flows. If a flow is programmed on a switch (in any fashion) it will be reflected in the operational datastore, even if it's not been configured in the config datastore.

edit flag offensive delete publish link more

Comments

Excellent answer. I wonder if anyone has already gone through the trouble of developing such a application already... Really appreciate your timely response!

sterdnotshaken ( 2016-06-22 12:22:23 -0700 )edit

I'm sure similar things have been done in the wild. I remember going through this POC before: https://github.com/BRCDcomm/bvcRestConfExample1 maybe it can provide inspriation? it's an external app that reacts on topology changes. Not exactly what you are asking, but might help.

jamoluhrsen ( 2016-06-22 22:48:18 -0700 )edit

@stendnotshaken you can check this functionality in my github project https://github.com/subh007/router-on-stick

subhash ( 2016-06-23 03:41:11 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-06-22 12:03:58 -0700

Seen: 30 times

Last updated: Jun 22 '16