diff mbox

[ovs-dev,2/3] ovs-router: report error when failing to insert route

Message ID 1479203387-17549-3-git-send-email-cascardo@redhat.com
State Accepted
Headers show

Commit Message

Thadeu Lima de Souza Cascardo Nov. 15, 2016, 9:49 a.m. UTC
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
---
 lib/ovs-router.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Pravin Shelar Nov. 16, 2016, 3:56 a.m. UTC | #1
On Tue, Nov 15, 2016 at 1:49 AM, Thadeu Lima de Souza Cascardo
<cascardo@redhat.com> wrote:
> Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
> ---
>  lib/ovs-router.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/ovs-router.c b/lib/ovs-router.c
> index e27514a..e29d462 100644
> --- a/lib/ovs-router.c
> +++ b/lib/ovs-router.c
> @@ -316,7 +316,7 @@ ovs_router_add(struct unixctl_conn *conn, int argc,
>      }
>      err = ovs_router_insert__(plen + 32, &ip6, plen, argv[2], &gw6);
>      if (err) {
> -        unixctl_command_reply(conn, "Error while inserting route.");
> +        unixctl_command_reply_error(conn, "Error while inserting route.");
>      } else {
>          unixctl_command_reply(conn, "OK");
>      }

I pushed this patch to master and branch 2.6.

Thanks.
diff mbox

Patch

diff --git a/lib/ovs-router.c b/lib/ovs-router.c
index e27514a..e29d462 100644
--- a/lib/ovs-router.c
+++ b/lib/ovs-router.c
@@ -316,7 +316,7 @@  ovs_router_add(struct unixctl_conn *conn, int argc,
     }
     err = ovs_router_insert__(plen + 32, &ip6, plen, argv[2], &gw6);
     if (err) {
-        unixctl_command_reply(conn, "Error while inserting route.");
+        unixctl_command_reply_error(conn, "Error while inserting route.");
     } else {
         unixctl_command_reply(conn, "OK");
     }