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


Getting SalFlowService to write to config tree (rather than operational)

asked 2015-08-25 14:37:23 -0700

arthurc gravatar image

Color me confused. I'm attempting to create flows and meters on an Openflow switch via Java. By looking around, I've managed to do so via SalFlowService and SalMeterService. However, I noticed today that the items I add only appear in the operational tree when I look at the inventory. I need to get this on the config side of the tree so that config survives switch reboots.

It's entirely possible I'm off in the weeds here and I've gone down a rat-hole. Is this the "recommended" way to add flows via Java (by using SalFlowService)? Perhaps there's something simple I'm missing that causes it to go to operational rather than config tree. I'm up to my ears in "toaster" examples and need a "real" example that does things to flows/meters etc. For whatever reason, the sample apps fall short of how to interact with this framework.

I do know how to do this via the REST APIs but am trying to side-step the performance overhead of doing this via HTTP and XML.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-08-27 13:47:23 -0700

arthurc gravatar image

I just stopped using the SalFlowService and instead am writing directly to the configuration tree via the DataBroker. Minor rework and all is well.

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

Question Tools

1 follower


Asked: 2015-08-25 14:37:23 -0700

Seen: 285 times

Last updated: Aug 27 '15