mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-30 18:29:22 +00:00
+ fixed no_set_aspath_prepend() to correctly match existing "set" statement
This commit is contained in:
parent
b63e60899f
commit
a7f93f3e06
@ -1,3 +1,9 @@
|
|||||||
|
2007-12-18 Denis Ovsienko
|
||||||
|
|
||||||
|
* bgp_routemap.c: (no_set_aspath_prepend) This command cancelled
|
||||||
|
existing "set" command regardless if "no set" matched it or not.
|
||||||
|
Fixed.
|
||||||
|
|
||||||
2007-11-13 Paul Jakma <paul.jakma@sun.com>
|
2007-11-13 Paul Jakma <paul.jakma@sun.com>
|
||||||
|
|
||||||
* bgp_main.c: Small fix, format string parameters should never
|
* bgp_main.c: Small fix, format string parameters should never
|
||||||
|
@ -3018,7 +3018,16 @@ DEFUN (no_set_aspath_prepend,
|
|||||||
"Prepend string for a BGP AS-path attribute\n"
|
"Prepend string for a BGP AS-path attribute\n"
|
||||||
"Prepend to the as-path\n")
|
"Prepend to the as-path\n")
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
|
char *str;
|
||||||
|
|
||||||
|
if (argc == 0)
|
||||||
return bgp_route_set_delete (vty, vty->index, "as-path prepend", NULL);
|
return bgp_route_set_delete (vty, vty->index, "as-path prepend", NULL);
|
||||||
|
|
||||||
|
str = argv_concat (argv, argc, 0);
|
||||||
|
ret = bgp_route_set_delete (vty, vty->index, "as-path prepend", str);
|
||||||
|
XFREE (MTYPE_TMP, str);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
ALIAS (no_set_aspath_prepend,
|
ALIAS (no_set_aspath_prepend,
|
||||||
|
Loading…
Reference in New Issue
Block a user