diff options
author | Ethan Jackson <ethan@nicira.com> | 2012-02-14 20:53:59 -0800 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2012-02-21 00:02:20 -0800 |
commit | bde9f75de100e3801735bf69f605320f4db65cba (patch) | |
tree | 136cb7844551f64173f256cbace160f428cfaf54 /lib/lacp.c | |
parent | d35f8e72cdcfa7b99e1987bb17b7bc1035ce2213 (diff) |
unixctl: New JSON RPC back-end.
The unixctl library had used the vde2 management protocol since the
early days of Open vSwitch. As Open vSwitch has matured, several
Python daemons have been added to the code base which would benefit
from a unixctl implementations. Instead of implementing the old
unixctl protocol in Python, this patch changes unixctl to use JSON
RPC for which we already have an implementation in both Python and
C. Future patches will need to implement a unixctl library in
Python on top of JSON RPC.
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/lacp.c')
-rw-r--r-- | lib/lacp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -878,7 +878,7 @@ lacp_unixctl_show(struct unixctl_conn *conn, int argc, const char *argv[], if (argc > 1) { lacp = lacp_find(argv[1]); if (!lacp) { - unixctl_command_reply(conn, 501, "no such lacp object"); + unixctl_command_reply_error(conn, "no such lacp object"); return; } lacp_print_details(&ds, lacp); @@ -888,6 +888,6 @@ lacp_unixctl_show(struct unixctl_conn *conn, int argc, const char *argv[], } } - unixctl_command_reply(conn, 200, ds_cstr(&ds)); + unixctl_command_reply(conn, ds_cstr(&ds)); ds_destroy(&ds); } |