]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_vty.c
bgpd: clean up clist management logic
[mirror_frr.git] / bgpd / bgp_vty.c
index 17bb3fed966a136776c4b92562772db7f00a1bfd..6bc50fb77e7a667f66b3bfba72c96d9001833282 100644 (file)
@@ -13206,8 +13206,6 @@ DEFUN (no_ip_community_list_standard_all,
        "Specify community to accept\n"
        COMMUNITY_VAL_STR)
 {
-       int delete_all = 0;
-
        char *cl_name_or_number = NULL;
        int direct = 0;
        int style = COMMUNITY_LIST_STANDARD;
@@ -13222,7 +13220,7 @@ DEFUN (no_ip_community_list_standard_all,
        char *str = argv_concat(argv, argc, idx);
 
        int ret = community_list_unset(bgp_clist, cl_name_or_number, str,
-                                      direct, style, delete_all);
+                                      direct, style);
 
        XFREE(MTYPE_TMP, str);
 
@@ -13287,8 +13285,6 @@ DEFUN (no_ip_community_list_expanded_all,
        "Specify community to accept\n"
        COMMUNITY_VAL_STR)
 {
-       int delete_all = 0;
-
        char *cl_name_or_number = NULL;
        int direct = 0;
        int style = COMMUNITY_LIST_EXPANDED;
@@ -13303,7 +13299,7 @@ DEFUN (no_ip_community_list_expanded_all,
        char *str = argv_concat(argv, argc, idx);
 
        int ret = community_list_unset(bgp_clist, cl_name_or_number, str,
-                                      direct, style, delete_all);
+                                      direct, style);
 
        XFREE(MTYPE_TMP, str);
 
@@ -13840,8 +13836,6 @@ DEFUN (no_ip_extcommunity_list_standard_all,
        "Specify community to accept\n"
        EXTCOMMUNITY_VAL_STR)
 {
-       int deleteall = 0;
-
        int style = EXTCOMMUNITY_LIST_STANDARD;
        int direct = 0;
        char *cl_number_or_name = NULL;
@@ -13856,7 +13850,7 @@ DEFUN (no_ip_extcommunity_list_standard_all,
        char *str = argv_concat(argv, argc, idx);
 
        int ret = extcommunity_list_unset(bgp_clist, cl_number_or_name, str,
-                                         direct, style, deleteall);
+                                         direct, style);
 
        XFREE(MTYPE_TMP, str);
 
@@ -13881,8 +13875,6 @@ DEFUN (no_ip_extcommunity_list_expanded_all,
        "Specify community to accept\n"
        "An ordered list as a regular-expression\n")
 {
-       int deleteall = 0;
-
        int style = EXTCOMMUNITY_LIST_EXPANDED;
        int direct = 0;
        char *cl_number_or_name = NULL;
@@ -13897,7 +13889,7 @@ DEFUN (no_ip_extcommunity_list_expanded_all,
        char *str = argv_concat(argv, argc, idx);
 
        int ret = extcommunity_list_unset(bgp_clist, cl_number_or_name, str,
-                                         direct, style, deleteall);
+                                         direct, style);
 
        XFREE(MTYPE_TMP, str);