Registry / devops / ovsdbapp

ovsdbapp

JSON →
library2.17.0pypypi✓ verified 85d ago

A library for creating OVSDB applications. Current version 2.17.0, released as part of OpenStack zed cycle. Follows OpenStack release cadence (approximately 6 months).

pip install ovsdbapp
INSTALL
IMPORT
SIG · OVSDBAPP
O
ovsdbapp
devopspythonv2.17.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Transaction
from ovsdbapp import api
from ovsdbapp import Transaction
Transaction is accessed via api.Transaction
VswitchdInterface
from ovsdbapp.backend.ovs_idl import vswitch
from ovsdbapp.vswitch import VswitchdInterface
vswitch module moved to backend.ovs_idl

Initialize OVSDB connection and transaction.

import os from ovsdbapp.backend.ovs_idl import connection from ovsdbapp import api remote = os.environ.get('OVSDB_REMOTE', 'tcp:127.0.0.1:6640') conn = connection.Connection(remote=remote) idl = conn.start() txn = api.Transaction(idl) # Use txn for operations print('OVSDB connection established')
Debug
Known issues
breakingTop-level api and schema imports moved to backend.ovs_idl. Importing from ovsdbapp directly may fail.
fix
Use from ovsdbapp.backend.ovs_idl import ...
affects: >=2.0.0
deprecatedThe ovsdbapp.api module is deprecated; use ovsdbapp.backend.ovs_idl.api instead.
fix
Update imports to backend.ovs_idl.api
affects: >=1.7.0
gotchaConnection.start() must be called before creating a transaction, otherwise IDL is None.
fix
Always call connection.start() to initialize the IDL.
affects: all
Errors
Common errors & fixes
ImportError: cannot import name 'Transaction' from 'ovsdbapp'
Wrong import path; Transaction is inside ovsdbapp.api.
fix
Use from ovsdbapp import api and then api.Transaction
AttributeError: 'NoneType' object has no attribute 'tables'
IDL not started before accessing transaction.
fix
Call connection.start() before creating transaction.
Upgrade
Version history
2.17.0latest on PyPI · released Apr 20, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Resources
ovsdbapp — pip install ovsdbapp · libregistry