summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-06-18 10:27:32 -0400
committerNeale Ranns <nranns@cisco.com>2019-06-20 07:28:41 +0000
commit9dd9434fb7002fd608c90d572f9ccd8ffe5224a9 (patch)
tree10784bb33a7454b5b8480b3ed7f01e89856ff883
parent5e1794dc93cc2371068b4919b5e607716cafe8e1 (diff)
api: fix return code in vxlan_gbp_tunnel_add_del
Return VNET_API_ERROR_INVALID_VALUE intead of 1. Type: fix Change-Id: Ie5465cad9ca07b9147306a808e8b13d0c4867913 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
-rw-r--r--src/vnet/vxlan-gbp/vxlan_gbp_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/vxlan-gbp/vxlan_gbp_api.c b/src/vnet/vxlan-gbp/vxlan_gbp_api.c
index 6a87d4dda52..aff5f841909 100644
--- a/src/vnet/vxlan-gbp/vxlan_gbp_api.c
+++ b/src/vnet/vxlan-gbp/vxlan_gbp_api.c
@@ -81,7 +81,7 @@ vxlan_gbp_tunnel_mode_decode (vl_api_vxlan_gbp_api_tunnel_mode_t in,
*out = VXLAN_GBP_TUNNEL_MODE_L3;
return (0);
}
- return (1);
+ return (VNET_API_ERROR_INVALID_VALUE);
}
static void vl_api_vxlan_gbp_tunnel_add_del_t_handler