OVSDB application library
Go to file
Terry Wilson c3bacb3ba3 Fix TRY_AGAIN handling
I believe removing wait_for_change back in the day was an error.
We can't do the exponential backoff ourselves because that will
also delay reconnecting to the the db, because idl.run() needs to
be called. Also, do_commit() doesn't ensure that idl.run() is
called if status is TRY_AGAIN. wait_for_change() will ensure that
we call idl.run() to reconnect quickly and don't try the txn again
until we have reconnected and the seqno has changed.

Revert "Don't spam retries 100s of times a second"
This reverts commit 6596164f51.

Revert "Ensure idl.run() called on TRY_AGAIN"
This reverts commit 1810faecc9.

Revert "Don't wait on TRY_AGAIN when calling commit_block()"
This reverts commit 158ae06bce.

Closes-Bug: #1988457
Change-Id: I237136262862d5117d08eb3b513a0b8658a79f05
2022-09-02 15:37:13 +00:00
doc remove unicode from code 2021-12-24 14:48:33 +08:00
ovsdbapp Fix TRY_AGAIN handling 2022-09-02 15:37:13 +00:00
releasenotes Merge "nb: add support for lb health checks API" 2022-07-29 20:14:07 +00:00
tools github no longer accepts git:// connections 2022-03-21 21:24:10 +00:00
zuul.d Update python testing as per zed cycle teting runtime 2022-05-11 22:13:14 -05:00
.gitignore Switch to stestr 2018-07-10 16:23:46 +07:00
.gitreview OpenDev Migration Patch 2019-04-19 19:43:59 +00:00
.pylintrc Update hacking for Python3 2020-04-01 10:06:32 -04:00
.stestr.conf Group tests in same class to run in same group 2018-11-20 12:32:29 -06:00
bindep.txt Add OVN Northbound API for LS, LSP, and DHCP 2017-07-03 23:19:46 -05:00
CONTRIBUTING.rst Update Zuul jobs: Enable docs publishing 2019-09-05 09:17:05 +02:00
HACKING.rst Check for oslo library usage 2018-08-23 09:03:54 -05:00
LICENSE Add cookiecutter output 2017-02-24 15:02:19 -05:00
README.rst Merge "PDF documentation build" 2019-09-26 11:59:36 +00:00
requirements.txt Drop lower-constraints.txt and its testing 2022-04-30 20:27:33 -05:00
setup.cfg Update python testing as per zed cycle teting runtime 2022-05-11 22:13:14 -05:00
setup.py Updated from global requirements 2017-03-15 04:26:57 +00:00
test-requirements.txt Move linters dependencies to tox.ini 2021-12-22 02:11:49 +00:00
TESTING.rst Add ability to debug OVS virtual environments 2017-07-13 19:51:31 +00:00
tox.ini Merge "vtep: add support for 'hardware_vtep' schema" 2022-07-20 15:08:43 +00:00

ovsdbapp

A library for creating OVSDB applications

The ovdsbapp library is useful for creating applications that communicate via Open_vSwitch's OVSDB protocol (https://tools.ietf.org/html/rfc7047). It wraps the Python 'ovs' and adds an event loop and friendly transactions.

Features:

  • An thread-based event loop for using ovs.db.Idl
  • Transaction support
  • Native OVSDB communication