summaryrefslogtreecommitdiff
path: root/python/ovs/reconnect.py
Commit message (Collapse)AuthorAgeFilesLines
* ovs.reconnect: Fix typo in documentation.Ben Pfaff2011-08-241-2/+2
| | | | Reported-by: Reid Price <reid@nicira.com>
* ovs.reconnect: Make Reconnect.Reconnect inherit from object.Ben Pfaff2011-08-241-1/+1
| | | | Reported-by: Reid Price <reid@nicira.com>
* python: Avoid using 'type' as a variable name.Ben Pfaff2011-08-241-5/+5
| | | | | | | 'type' is a Python built-in function, so it's best to avoid using it as a variable name. Reported-by: Reid Price <reid@nicira.com>
* reconnect.py: Fix Python 2.4 compatibility break.Andrew Evans2011-03-151-2/+3
| | | | | | | | | | Commit 5eda645e36 (ovsdb-server: Report time since last connect and disconnect for each manager.) used a conditional expression in reconnect.py. That syntax is only supported in Python 2.5 and later. XenServer 5.6 is based on RHEL 5, which uses Python 2.4.3, so various OVS scripts on XenServer fail with Python tracebacks. Reported-by: Cedric Hobbs <cedric@nicira.com>
* ovsdb-server: Report time since last connect and disconnect for each manager.Andrew Evans2011-03-141-18/+16
| | | | | | | | | | | | Only the time connected (if connected) or disconnected (if disconnected) is currently reported for each manager. Change to reporting both in seconds since the last connect and disconnect events respectively. An empty value indicates no previous connection or disconnection. This can help diagnose certain connectivity problems, e.g. flapping. Requested-by: Peter Balland <peter@nicira.com> Bug #4833.
* reconnect: Rename CONNECT_IN_PROGRESS state to CONNECTING (like rconn).Andrew Evans2011-03-101-1/+1
| | | | | | reconnect uses the same connection state names as rconn with the exception of the above. This commit makes their states identical, which should reduce confusion for people debugging connection problems.
* reconnect: Track last-disconnected time.Andrew Evans2011-03-091-0/+15
| | | | | | Commit a4613b01ab (ovsdb: Change the way connection duration time is reported in Manager table.), pushed earlier today, requires this commit, so OVSDB has been unbuildable from then to now.
* Implement initial Python bindings for Open vSwitch database.Ben Pfaff2010-08-251-0/+563
These initial bindings pass a few hundred of the corresponding tests for C implementations of various bits of the Open vSwitch library API. The poorest part of them is actually the Python IDL interface in ovs.db.idl, which has not received enough attention yet. It appears to work, but it doesn't yet support writes (transactions) and it is difficult to use. I hope to improve it as it becomes clear what semantics Python applications actually want from an IDL.