diff options
author | Igor Mikhailov (imichail) <imichail@cisco.com> | 2019-02-26 11:53:18 -0800 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-03-01 09:22:59 +0000 |
commit | 6d8233c9a55a78631761488ea79b48b9e370a9b3 (patch) | |
tree | d312a6e95996e13b85468218a432f6b06dfdf52e /src/plugins/abf/abf_itf_attach.c | |
parent | 1be5206814e9bae825b320b21bbe22618f8cd214 (diff) |
Fix API return code in case of error.
Change-Id: I22f866bacbc9c6e3abb0405f5c5a205910cec17b
Signed-off-by: Igor Mikhailov (imichail) <imichail@cisco.com>
Diffstat (limited to 'src/plugins/abf/abf_itf_attach.c')
-rw-r--r-- | src/plugins/abf/abf_itf_attach.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/abf/abf_itf_attach.c b/src/plugins/abf/abf_itf_attach.c index 166ccec31aa..151fb988edf 100644 --- a/src/plugins/abf/abf_itf_attach.c +++ b/src/plugins/abf/abf_itf_attach.c @@ -258,7 +258,7 @@ abf_itf_detach (fib_protocol_t fproto, u32 policy_id, u32 sw_if_index) aia = abf_itf_attach_db_find (policy_id, sw_if_index); if (NULL == aia) - return (VNET_API_ERROR_ENTRY_ALREADY_EXISTS); + return (VNET_API_ERROR_NO_SUCH_ENTRY); /* * first remove from the interface's vector |