summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_clist.h8
-rw-r--r--bgpd/bgp_vty.c3
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;