bond: Incorrectly reported an error in appctl.
authorEthan Jackson <ethan@nicira.com>
Tue, 21 Feb 2012 05:57:20 +0000 (21:57 -0800)
committerEthan Jackson <ethan@nicira.com>
Tue, 21 Feb 2012 08:02:20 +0000 (00:02 -0800)
The bond/enable-slave and bond/disable-slave ovs-appctl commands
incorrectly reported the 501 error code upon success.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
lib/bond.c

index 157e9889ed014a34119ed33b59414dd61d36e009..1ad2367d48c808d513e340cd4cf0057cabd8f0ff 100644 (file)
@@ -1168,7 +1168,7 @@ enable_slave(struct unixctl_conn *conn, const char *argv[], bool enable)
     }
 
     bond_enable_slave(slave, enable, &bond->unixctl_tags);
-    unixctl_command_reply(conn, 501, enable ? "enabled" : "disabled");
+    unixctl_command_reply(conn, 200, enable ? "enabled" : "disabled");
 }
 
 static void