On Thu, Sep 13, 2018 at 11:51 AM Kurt Stieger <[email protected]> wrote:
> Hi there, > > > > are there any examples for the python (2.7) bindings of ovs? > > > > I basically want automate the tasks I manually do with ovs-vsctl like: > > > > ovs-vsctl init > > ovs-vsctl show > > ovs-vsctl add-br > > ovs-vsctl del-br > > ovs-vsctl list-br > > ovs-vsctl br-exists > > ovs-vsctl list-ports > > ovs-vsctl add-port > > ovs-vsctl del-port > > ovs-vsctl br-exists > > … > you may want to look into this - https://github.com/openstack/ovsdbapp/blob/master/ovsdbapp/schema/open_vswitch/commands.py#L76 The ovsdbapp library internally uses the python ovs idl bindings. Openstack neutron uses ovsdbapp to create/delete bridges, ports etc. Thanks Numan > > > Or is it even better to trigger the commandline with subprocess? > > > > Thanks a lot, > > Kurt > > > ------------------------------ > Barracuda Networks AG > Vorsitzender des Aufsichtsrates/ Chairman of the supervisory board: Dr. > Klaus Perktold > Vorstand/ Executive Board: Dr. Klaus Gheri, Mag. Guenter Klausner > Sitz der Gesellschaft/ Registered office: 6020 Innsbruck, Austria > Handelsgericht Innsbruck Firmenbuch/ Registration Number: 184392s > UID-Nr/ VAT Number: ATU47509003 > > Zweigniederlassung Deutschland/ Office Germany: Radlkoferstr. 2, 81373 > München > Handelsregister München / Registration Number: HRB 171749 > UID-Nr/ VAT Number: DE237607533 > > ------------------------------ > > > *Forrester names Barracuda WAF a Strong Performer! Get the free report > here! <https://www.barracuda.com/WAFWave>* > > *DISCLAIMER:* This e-mail and any attachments to it contain confidential > and proprietary material of Barracuda, its affiliates or agents, and is > solely for the use of the intended recipient. Any review, use, disclosure, > distribution or copying of this transmittal is prohibited except by or on > behalf of the intended recipient. If you have received this transmittal in > error, please notify the sender and destroy this e-mail and any attachments > and all copies, whether electronic or printed. > ------------------------------ > > _______________________________________________ > discuss mailing list > [email protected] > https://mail.openvswitch.org/mailman/listinfo/ovs-discuss >
_______________________________________________ discuss mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
