[ovs-discuss] ovs-vsctl using ovsdb-client

Ben Pfaff blp at ovn.org
Wed Jan 4 18:09:26 UTC 2017


On Sat, Dec 31, 2016 at 06:41:17PM +0530, Shravan S K wrote:
> How the functionality provided by ovs-vsctl can be achieved using
> ovsdb-client commands ?
> 
> For example, to create a bridge and add a port using ovs-vsctl, we can use
> $ ovs-vsctl add bridge br0
> $ ovs-vsctl add-port br0 port0
> How to do these using ovsdb-client ?
> 
> I went through the doc
> http://openvswitch.org/support/dist-docs-2.5/ovsdb-client.1.pdf Should we
> use the transact command ? (I know basic database stuff) If so, can you
> please give an example of how to do it or suggest some useful
> resources/tutorials available online ?

You might want to run ovs-vsctl with -vjsonrpc to look at how ovs-vsctl
implements its commands.


More information about the discuss mailing list