From 043221bf63572964cdbaff87f4e0572131e40bd1 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Tue, 23 Apr 2019 11:38:59 +0300 Subject: [PATCH] doc: Specify allowed chars in bgp regular expressions Signed-off-by: Donatas Abraitis --- bgpd/bgp_filter.c | 4 ++-- bgpd/bgp_route.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5