From a7c3317abafa011c64c78ce35017724d691e0ae0 Mon Sep 17 00:00:00 2001 From: Pooja Jagadeesh Doijode Date: Fri, 17 May 2024 12:37:24 -0700 Subject: [PATCH] bgpd: Removed unused COMMUNITY_LIST_ERR_CANT_FIND_LIST Removed the unused COMMUNITY_LIST_ERR_CANT_FIND_LIST Ticket:#3900813 Testing Done: precommit Signed-off-by: Pooja Jagadeesh Doijode --- bgpd/bgp_clist.h | 8 +++----- bgpd/bgp_vty.c | 3 --- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/bgpd/bgp_clist.h b/bgpd/bgp_clist.h index 3395483054..29bd880c93 100644 --- a/bgpd/bgp_clist.h +++ b/bgpd/bgp_clist.h @@ -109,11 +109,9 @@ struct community_list_handler { }; /* Error code of community-list. */ -#define COMMUNITY_LIST_ERR_CANT_FIND_LIST -1 -#define COMMUNITY_LIST_ERR_MALFORMED_VAL -2 -#define COMMUNITY_LIST_ERR_STANDARD_CONFLICT -3 -#define COMMUNITY_LIST_ERR_EXPANDED_CONFLICT -4 - +#define COMMUNITY_LIST_ERR_MALFORMED_VAL -1 +#define COMMUNITY_LIST_ERR_STANDARD_CONFLICT -2 +#define COMMUNITY_LIST_ERR_EXPANDED_CONFLICT -3 /* Handler. */ extern struct community_list_handler *bgp_clist; diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 6d78f929c4..be9942afb6 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -21715,9 +21715,6 @@ static const char *community_direct_str(int direct) static void community_list_perror(struct vty *vty, int ret) { switch (ret) { - case COMMUNITY_LIST_ERR_CANT_FIND_LIST: - vty_out(vty, "%% Can't find community-list\n"); - break; case COMMUNITY_LIST_ERR_MALFORMED_VAL: vty_out(vty, "%% Malformed community-list value\n"); break; -- 2.39.5