[ovs-discuss] Is there a way to programmatically interact with openvswitch?

Justin Pettit jpettit at nicira.com
Wed Feb 26 18:09:05 UTC 2014


On Feb 26, 2014, at 8:40 AM, Pasquale Dir <phate867 at gmail.com> wrote:

> I need to programmatically create a gre tunnel between two switches or, at least, get a list of all tunnels on a switch and extract the endpoints.
> 
> Is there any apis to do so?

Tunnels are configurable through OVSDB, which has a well-defined API and the ability to be used over a network.  ovs-vsctl uses OVSDB to configure things like tunnels.  You could use that program itself or look at its source.

> Do exist some controller who already allow user to do it?

I imagine any controller that supports OVSDB has the ability.  For example, OpenDaylight has an OVSDB support, but I haven't used it myself so I can't speak to its capabilities.

--Justin





More information about the discuss mailing list