]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Removed unused COMMUNITY_LIST_ERR_CANT_FIND_LIST 16070/head
authorPooja Jagadeesh Doijode <pdoijode@nvidia.com>
Fri, 17 May 2024 19:37:24 +0000 (12:37 -0700)
committerPooja Jagadeesh Doijode <pdoijode@nvidia.com>
Fri, 24 May 2024 18:25:16 +0000 (11:25 -0700)
Removed the unused COMMUNITY_LIST_ERR_CANT_FIND_LIST

Ticket:#3900813
Testing Done: precommit

Signed-off-by: Pooja Jagadeesh Doijode <pdoijode@nvidia.com>
bgpd/bgp_clist.h
bgpd/bgp_vty.c

index 33954830546377b39166b70a0e4c4d704ae870a8..29bd880c937ee10bfd67e7c934f48e5436923a2b 100644 (file)
@@ -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;
 
index 6d78f929c4d4b52001980750e9069cd619a47b9f..be9942afb6ea3996d2a564641966b14777562f3a 100644 (file)
@@ -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;