OVSDB application library
Go to file
Daniel Alvarez fd64d41ea6 Improve DbListCommand operation from O(n^2) to O(n)
Right now the DbListCommand retrieves the uuid's of all the elements
passed in as argument. This is an O(n^2) operation so when the number
of elements in a grows it's likely that we get Timeout Exceptions.

Instead of doing this, whenever possible, we'll retrieve all the
elements (from the in-memory replica) and only fetch those who were
passed as arguments avoiding the O(n^2) operation.

(cherry picked from 476b174f7d)
Change-Id: I71411e5dd68753eb3825f8b0e91009f87de1b260
Closes-Bug: #1769897
2018-05-10 13:50:04 +00:00
doc/source Removes unnecessary utf-8 encoding 2017-07-20 16:35:33 +05:30
ovsdbapp Improve DbListCommand operation from O(n^2) to O(n) 2018-05-10 13:50:04 +00:00
releasenotes Update reno for stable/pike 2017-07-28 21:06:07 +00:00
tools Have debug_venv use OVN venv 2017-09-01 10:45:09 -05:00
.gitignore Ignore .testrepository and editor(s) files 2017-04-21 10:09:30 +01:00
.gitreview Update .gitreview for stable/queens 2018-01-24 18:10:00 +00:00
.pylintrc pylint: Disable duplicate-code for check 2017-07-03 20:31:35 +00:00
.testr.conf Fix pep8/cookiecutter test running 2017-02-24 15:32:17 -05:00
CONTRIBUTING.rst Add cookiecutter output 2017-02-24 15:02:19 -05:00
HACKING.rst Update the documentation link for doc migration 2017-07-21 14:13:21 +08:00
LICENSE Add cookiecutter output 2017-02-24 15:02:19 -05:00
README.rst There is no documentation for ovsdbapp 2017-07-20 16:18:21 +05:30
TESTING.rst Add ability to debug OVS virtual environments 2017-07-13 19:51:31 +00:00
babel.cfg Add cookiecutter output 2017-02-24 15:02:19 -05:00
bindep.txt Add OVN Northbound API for LS, LSP, and DHCP 2017-07-03 23:19:46 -05:00
requirements.txt Updated from global requirements 2018-02-13 01:59:01 +00:00
setup.cfg Enable warning-is-error in doc build 2017-07-08 17:30:45 +00:00
setup.py Updated from global requirements 2017-03-15 04:26:57 +00:00
test-requirements.txt Updated from global requirements 2018-02-13 01:59:01 +00:00
tox.ini Update UPPER_CONSTRAINTS_FILE for stable/queens 2018-01-24 18:10:03 +00:00

README.rst

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