From: Donatas Abraitis Date: Tue, 23 Apr 2019 08:38:59 +0000 (+0300) Subject: doc: Specify allowed chars in bgp regular expressions X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=043221bf63572964cdbaff87f4e0572131e40bd1;p=matthieu%2Ffrr.git doc: Specify allowed chars in bgp regular expressions Signed-off-by: Donatas Abraitis --- diff --git a/bgpd/bgp_filter.c b/bgpd/bgp_filter.c index b02215db3d..592ceef80c 100644 --- a/bgpd/bgp_filter.c +++ b/bgpd/bgp_filter.c @@ -409,7 +409,7 @@ DEFUN(ip_as_path, ip_as_path_cmd, "Regular expression access list name\n" "Specify packets to reject\n" "Specify packets to forward\n" - "A regular-expression (1234567890_(^|[,{}() ]|$)) to match the BGP AS paths\n") + "A regular-expression (1234567890_^|[,{}() ]$*+.?-\\) to match the BGP AS paths\n") { int idx = 0; enum as_filter_type type; @@ -467,7 +467,7 @@ DEFUN(no_ip_as_path, no_ip_as_path_cmd, "Regular expression access list name\n" "Specify packets to reject\n" "Specify packets to forward\n" - "A regular-expression (1234567890_(^|[,{}() ]|$)) to match the BGP AS paths\n") + "A regular-expression (1234567890_^|[,{}() ]$*+.?-\\) to match the BGP AS paths\n") { int idx = 0; enum as_filter_type type; diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index fead5fe75f..96fcbd09de 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -9344,7 +9344,7 @@ DEFUN (show_ip_bgp_regexp, BGP_AFI_HELP_STR BGP_SAFI_WITH_LABEL_HELP_STR "Display routes matching the AS path regular expression\n" - "A regular-expression to match the BGP AS paths\n") + "A regular-expression (1234567890_^|[,{}() ]$*+.?-\\) to match the BGP AS paths\n") { afi_t afi = AFI_IP6; safi_t safi = SAFI_UNICAST;