Ethan Jackson
3a656eafb9
python: Upgrade to vlog.
...
This patch upgrades the library code in the python/ovs directory to
the new vlog module.
2011-09-27 14:51:49 -07:00
Ethan Jackson
26bb0f3129
python: Style cleanup.
...
This patch does minor style cleanups to the code in the python and
tests directory. There's other code floating around that could use
similar treatment, but updating it is not convenient at the moment.
2011-09-24 16:32:54 -07:00
Ben Pfaff
b2edc4e7d8
ovs.jsonrpc: Include result in Message.__str__() output.
...
This was overlooked in the initial implementation. Including the result
member makes logging output more useful.
2011-09-23 09:10:44 -07:00
Ben Pfaff
9b46cccc33
python: Avoid shadowing standard or global names.
...
Found by pychecker.
2011-09-23 09:10:44 -07:00
Ben Pfaff
4071e24db4
ovs.jsonrpc: Fix static method Session.open() reference to 'self'.
...
Found by pychecker.
2011-08-25 11:07:23 -07:00
Ben Pfaff
b2a5856fef
ovs.jsonrpc: Fix static method Message.__validate_arg reference to 'self'.
...
This method needs to be an instance method because it refers to 'self'.
Found by pychecker.
2011-08-25 11:07:23 -07:00
Ben Pfaff
63b1a52133
ovs.stream: Drop Stream.get_name() since clients can use 'name' directly.
...
Suggested-by: Reid Price <reid@nicira.com >
2011-08-24 12:06:53 -07:00
Ben Pfaff
2ad4ef8920
ovs.jsonrpc: Use "not X" in place of "len(X) == 0" for testing strings.
...
Suggested-by: Reid Price <reid@nicira.com >
2011-08-24 12:06:52 -07:00
Ben Pfaff
22bb61e9ee
ovs.jsonrpc: Remove Connection.get_name()--clients can use 'name' directly.
...
Suggested-by: Reid Price <reid@nicira.com >
2011-08-24 12:06:52 -07:00
Ben Pfaff
17af143600
ovs.jsonrpc: Remove dead class variable Message.__next_id.
...
Reported-by: Reid Price <reid@nicira.com >
2011-08-24 12:06:52 -07:00
Ben Pfaff
8758e8a373
python: Avoid using 'type' as a variable name.
...
'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 >
2011-08-24 11:57:42 -07:00
Justin Pettit
da51646f6f
jsonrpc.py: Import "ovs.json".
...
Reported-by: Giuseppe de Candia <giuseppe.decandia@gmail.com >
2011-02-21 23:56:07 -08:00
Ben Pfaff
991559357f
Implement initial Python bindings for Open vSwitch database.
...
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.
2010-08-25 14:55:48 -07:00