abf: return status of attachment add/del
Type: fix
The handler for abf_itf_attach_add_del was always returning 0. Set rv to
the return value of call to abf_itf_attach() or abf_itf_detach().
@@ -113,15 +113,13 @@ vl_api_abf_itf_attach_add_del_t_handler (vl_api_abf_itf_attach_add_del_t * mp)
if (mp->is_add)
{
- abf_itf_attach (fproto,
- ntohl (mp->attach.policy_id),
+ rv = abf_itf_attach (fproto, ntohl (mp->attach.policy_id),
ntohl (mp->attach.priority),
ntohl (mp->attach.sw_if_index));
}
else
{
- abf_itf_detach (fproto,
- ntohl (mp->attach.policy_id),
+ rv = abf_itf_detach (fproto, ntohl (mp->attach.policy_id),
ntohl (mp->attach.sw_if_index));
}
