summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2019-06-26 14:06:10 +0200
committerDonatas Abraitis <donatas.abraitis@gmail.com>2019-06-27 07:05:12 +0200
commit4cae22692d0d974d7e067455902b2428c6560106 (patch)
tree01016af1c2058dbf5e357071681a9230f8ddf08a
parentMerge pull request #4525 from donaldsharp/some_cleanups (diff)
downloadfrr-4cae22692d0d974d7e067455902b2428c6560106.tar.xz
frr-4cae22692d0d974d7e067455902b2428c6560106.zip
bgpd: Show `delete` sub-option for `set [l]comm-list <list> delete`
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
-rw-r--r--bgpd/bgp_routemap.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c
index a212523b1..8aa5dfd66 100644
--- a/bgpd/bgp_routemap.c
+++ b/bgpd/bgp_routemap.c
@@ -4309,9 +4309,12 @@ DEFUN (set_community_delete,
"Delete matching communities\n")
{
int idx_comm_list = 2;
+ char *args;
+ args = argv_concat(argv, argc, idx_comm_list);
generic_set_add(vty, VTY_GET_CONTEXT(route_map_index), "comm-list",
- argv[idx_comm_list]->arg);
+ args);
+ XFREE(MTYPE_TMP, args);
return CMD_SUCCESS;
}
@@ -4401,8 +4404,13 @@ DEFUN (set_lcommunity_delete,
"Large Community-list name\n"
"Delete matching large communities\n")
{
+ int idx_lcomm_list = 2;
+ char *args;
+
+ args = argv_concat(argv, argc, idx_lcomm_list);
generic_set_add(vty, VTY_GET_CONTEXT(route_map_index),
- "large-comm-list", argv[2]->arg);
+ "large-comm-list", args);
+ XFREE(MTYPE_TMP, args);
return CMD_SUCCESS;
}