[ovs-discuss] external ovs c++ controller

Boris Ouretskey borisusun at gmail.com
Sat Nov 10 16:57:21 UTC 2018

Thanks for the answer.

I am new at this, so sorry if I am asking about basic stuff.

By I "have to reverse engineering" I mean that I am trying to find a ready
made c++ library which has already implemented the  OVSDB protocol and
communication layer with OVS and exposes basic API similar to syntax used
by ovs-vsctl . I didn't find the documentation for c API used by OVS
utilities, so I thought I have to look up at what ovs-vsctl  does and use
the API in a similar way.


On Fri, Nov 9, 2018 at 5:34 PM Ben Pfaff <blp at ovn.org> wrote:

> 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
> > 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20181110/6e9227a4/attachment.html>

More information about the discuss mailing list