[ovs-discuss] external ovs c++ controller

Ben Pfaff blp at ovn.org
Fri Nov 9 15:34:40 UTC 2018


On Fri, Nov 09, 2018 at 12:27:40PM +0200, Boris Ouretskey wrote:
> Hi
> 
> What would be the preferred API for controlling open switch bridges from
> c++ user space application. (both Windows and Linux version of ovs should
> be supported). the controller should run on both windows and linux also.
> 
> 1. reverse engineering ovs-vsctl (or test controller) and use the same API
> it does.
> 
> 2. use some open-source c++ openflow stack (if exists)
> 
> 3. just run System("ovs-vsctl ...") from the application
> 
> The application mostly opens and configures the ports. Controlling the
> openflow tables is of less priority.

I don't know why you'd have to reverse-engineer things.  The OVSDB
protocol and the database schema are fully documented.

If you want to control the database, then ovs-vsctl is the easy way if
your needs are simple, otherwise you'd probably be better off with a
database interface.  An OpenFlow stack isn't going to help for database
access.


More information about the discuss mailing list