summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2019-07-09 17:25:10 +0200
committerGitHub <noreply@github.com>2019-07-09 17:25:10 +0200
commit4bb3fb0920e68be04477e0d5c735efd280dab213 (patch)
treed9eff0f9dd0e2bfbdb58324d5b32f505a47404b8
parentMerge pull request #4437 from opensourcerouting/bfdd-northbound (diff)
parentbgpd: Show `delete` sub-option for `set [l]comm-list <list> delete` (diff)
downloadfrr-4bb3fb0920e68be04477e0d5c735efd280dab213.tar.xz
frr-4bb3fb0920e68be04477e0d5c735efd280dab213.zip
Merge pull request #4609 from ton31337/fix/show_set_comm-list_delete
bgpd: Show `delete` sub-option for `set [l]comm-list <list> delete`
-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 24c8cc442..1f90fa742 100644
--- a/bgpd/bgp_routemap.c
+++ b/bgpd/bgp_routemap.c
@@ -4344,9 +4344,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;
}
@@ -4436,8 +4439,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;
}