The main purpose of this series is to reduce the boilerplate involved in
creating python daemons.  It does this by switching from getopt to argparse,
and by creating a new vlog module.

The first patch of the series backports the argparse module to older platforms.
I have tested that the backport actually works, but I haven't tested the
packaging on those platforms yet.  I will do that before merging.

Ethan Jackson (7):
  python: Backport argparse to older platforms.
  python: Create new vlog module.
  stream.py: Make usage() function return a string.
  python: Upgrade daemon module to argparse.
  python: Upgrade to vlog.
  ovs-monitor-ipsec: Convert to vlog.
  ovs-xapi-sync: Convert to vlog.

 Makefile.am                                        |    1 +
 debian/control                                     |    2 +-
 debian/copyright.in                                |    3 +-
 debian/ovs-monitor-ipsec                           |   74 +-
 python/compat/argparse.py                          | 2350 ++++++++++++++++++++
 python/compat/automake.mk                          |    3 +
 {xenserver => python/compat}/uuid.py               |    0
 python/ovs/automake.mk                             |    1 +
 python/ovs/daemon.py                               |   83 +-
 python/ovs/db/idl.py                               |   72 +-
 python/ovs/fatal_signal.py                         |    7 +-
 python/ovs/jsonrpc.py                              |   23 +-
 python/ovs/poller.py                               |   10 +-
 python/ovs/reconnect.py                            |   36 +-
 python/ovs/socket_util.py                          |   13 +-
 python/ovs/stream.py                               |   27 +-
 python/ovs/vlog.py                                 |  200 ++
 rhel/openvswitch.spec.in                           |    3 +-
 tests/automake.mk                                  |    6 +-
 tests/daemon-py.at                                 |   18 +-
 tests/jsonrpc-py.at                                |    6 +-
 tests/ovs-monitor-ipsec.at                         |    4 +-
 tests/ovs-xapi-sync.at                             |    4 +-
 tests/test-daemon.py                               |   45 +-
 tests/test-jsonrpc.py                              |   60 +-
 tests/test-reconnect.py                            |    3 -
 tests/test-vlog.py                                 |   37 +
 tests/testsuite.at                                 |    1 +
 tests/vlog.at                                      |   28 +
 xenserver/README                                   |   10 +-
 xenserver/automake.mk                              |    3 +-
 xenserver/openvswitch-xen.spec                     |    4 +-
 .../usr_share_openvswitch_scripts_ovs-xapi-sync    |   90 +-
 33 files changed, 2896 insertions(+), 331 deletions(-)
 mode change 100755 => 100644 debian/ovs-monitor-ipsec
 create mode 100644 python/compat/argparse.py
 create mode 100644 python/compat/automake.mk
 rename {xenserver => python/compat}/uuid.py (100%)
 create mode 100644 python/ovs/vlog.py
 create mode 100644 tests/test-vlog.py
 create mode 100644 tests/vlog.at

-- 
1.7.6.1

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to