[ovs-dev] [python idl 00/16] Make Python IDL support writing

Ben Pfaff blp at nicira.com
Mon Sep 19 18:18:06 UTC 2011


Until now the Python IDL for OVSDB has supported reading, but not writing,
the database.  Furthermore, the interface has been suboptimal.  This
series fixes both of those problems.

The first three patches in this series are the final three patches from
the "python3" series that I posted weeks ago.  They were never reviewed.

Ben Pfaff (16):
  ovs.db.types: Always initialize ref_type attribute.
  python: Avoid "unused parameter" warnings from pychecker.
  python: Avoid shadowing standard or global names.
  ovs.json: Actually implement the "pretty" option for serialization.
  ovs.json: Remove commented-out debug code.
  tests: Actually run all the Python IDL tests under Python.
  ovsdb-idl: Code style improvements.
  ovs.db.data: Fix Atom.new()'s handling of Boolean values.
  ovs.db.data: Make Datum.check_constraints() work.
  ovs.jsonrpc: Include result in Message.__str__() output.
  tests: Fix typos in C versions of test-ovsdb error messages.
  ovs.ovsuuid: Get rid of ovs.ovsuuid.UUID class.
  python: Change 'clone' function names to 'copy'.
  python: Accept multiple forms of strings and lists when parsing JSON.
  ovs.db.types: Add table reference to ovs.db.types.BaseType.
  python: Implement write support in Python IDL for OVSDB.

 debian/ovs-monitor-ipsec                           |   31 +-
 lib/ovsdb-idl.c                                    |   16 +-
 ovsdb/automake.mk                                  |    5 +-
 ovsdb/ovsdb-dot.in                                 |    4 +-
 ovsdb/ovsdb-idlc.in                                |   29 +-
 python/ovs/daemon.py                               |   26 +-
 python/ovs/db/data.py                              |  126 +++-
 python/ovs/db/idl.py                               | 1023 +++++++++++++++++---
 python/ovs/db/parser.py                            |    9 +-
 python/ovs/db/schema.py                            |   34 +-
 python/ovs/db/types.py                             |   82 +-
 python/ovs/fatal_signal.py                         |   10 +-
 python/ovs/json.py                                 |  133 ++-
 python/ovs/jsonrpc.py                              |   12 +-
 python/ovs/ovsuuid.py                              |   81 +-
 python/ovs/util.py                                 |   16 +-
 tests/atlocal.in                                   |    2 +-
 tests/automake.mk                                  |   10 +-
 tests/ovsdb-idl-py.at                              |  149 ---
 tests/ovsdb-idl.at                                 |   39 +-
 tests/ovsdb.at                                     |    1 -
 tests/test-ovsdb.c                                 |    6 +-
 tests/test-ovsdb.py                                |  184 +++-
 .../usr_share_openvswitch_scripts_ovs-xapi-sync    |  217 ++---
 24 files changed, 1573 insertions(+), 672 deletions(-)
 delete mode 100644 tests/ovsdb-idl-py.at

-- 
1.7.4.4




More information about the dev mailing list