diff options
author | Denis Ovsienko <linux@pilot.org.ua> | 2007-12-18 15:13:06 +0000 |
---|---|---|
committer | Denis Ovsienko <linux@pilot.org.ua> | 2007-12-18 15:13:06 +0000 |
commit | a7f93f3e060fdb2dc7bf5ff4ed4563d4b689bc6c (patch) | |
tree | f21aab4a90ddc873bf39a29b5b756129b7813740 /bgpd/bgp_routemap.c | |
parent | b63e60899f2eba733fadbca020cdbe98d9d58b5f (diff) |
+ fixed no_set_aspath_prepend() to correctly match existing "set" statement
Diffstat (limited to 'bgpd/bgp_routemap.c')
-rw-r--r-- | bgpd/bgp_routemap.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index d51375b7..b246e2ab 100644 --- a/bgpd/bgp_routemap.c +++ b/bgpd/bgp_routemap.c @@ -3018,7 +3018,16 @@ DEFUN (no_set_aspath_prepend, "Prepend string for a BGP AS-path attribute\n" "Prepend to the as-path\n") { - return bgp_route_set_delete (vty, vty->index, "as-path prepend", NULL); + int ret; + char *str; + + if (argc == 0) + 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, |