From bf386593a064d99784afae449ca6fb45ad4cfbc9 Mon Sep 17 00:00:00 2001 From: Parixit Gokhale Date: Thu, 11 Apr 2019 14:00:52 -0700 Subject: Adding check to ensure acl_id matches existing acl_id in abf_policy_update Change-Id: Ia86387ca5a52d6b4b9e5aff0c01c92df13a5dde5 Signed-off-by: Parixit Gokhale --- src/plugins/abf/abf_policy.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/abf/abf_policy.h') diff --git a/src/plugins/abf/abf_policy.h b/src/plugins/abf/abf_policy.h index 724611eac38..7d890abed73 100644 --- a/src/plugins/abf/abf_policy.h +++ b/src/plugins/abf/abf_policy.h @@ -82,10 +82,10 @@ extern fib_node_type_t abf_policy_fib_node_type; * @param policy_id User defined Policy ID * @param acl_index The ACL the policy with match on * @param rpaths The set of paths to add to the forwarding set + * @return error code */ -extern void abf_policy_update (u32 policy_id, - u32 acl_index, - const fib_route_path_t * rpaths); +extern int abf_policy_update (u32 policy_id, + u32 acl_index, const fib_route_path_t * rpaths); /** * Delete paths from an ABF Policy. If no more paths exist, the policy -- cgit 1.2.3-korg