python: Break unixctl implementation into registry, client, and server.
authorBen Pfaff <blp@nicira.com>
Mon, 14 May 2012 18:26:36 +0000 (11:26 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 22 May 2012 17:17:05 +0000 (10:17 -0700)
commit53cf9963ccc60b443d738b31fbb446bc79170693
tree948358ebf45f0c5babefa010977a7c4e27c98fa6
parent7b7e43f55981246cd2b4983460c5382baa94390e
python: Break unixctl implementation into registry, client, and server.

I wish to add some unixctl commands to the Python vlog module.  However,
importing ovs.unixctl in ovs.vlog creates a circular dependency, because
ovs.unixctl imports ovs.vlog already.  The solution, in this commit, is to
break the unixctl module into three parts: a register (ovs.unixctl) that
does not depend on ovs.vlog, and client (ovs.unixctl.client) and server
(ovs.unixctl.server) modules that do.  This breaks the circular dependency.

Signed-off-by: Ben Pfaff <blp@nicira.com>
debian/ovs-monitor-ipsec
python/automake.mk
python/ovs/unixctl/__init__.py [new file with mode: 0644]
python/ovs/unixctl/client.py [new file with mode: 0644]
python/ovs/unixctl/server.py [moved from python/ovs/unixctl.py with 75% similarity]
tests/appctl.py
tests/test-unixctl.py
xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync