api: fix return code in vxlan_gbp_tunnel_add_del
[vpp.git] / src / vnet / vxlan-gbp / vxlan_gbp_api.c
index 6a87d4d..aff5f84 100644 (file)
@@ -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