Ask Your Question

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower


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

Seen: 273 times

Last updated: Aug 27 '15