From d3bbda8605b56c4ab239a831d1278967d9666bc5 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 | 8 ++++---- bgpd/bgp_route.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bgpd/bgp_filter.c b/bgpd/bgp_filter.c index 2e1588aa8c..37d6525c95 100644 --- a/bgpd/bgp_filter.c +++ b/bgpd/bgp_filter.c @@ -409,7 +409,7 @@ DEFUN(as_path, bgp_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; @@ -477,7 +477,7 @@ ALIAS(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") DEFUN(no_as_path, no_bgp_as_path_cmd, "no bgp as-path access-list WORD LINE...", @@ -488,7 +488,7 @@ DEFUN(no_as_path, no_bgp_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; @@ -565,7 +565,7 @@ ALIAS(no_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") DEFUN (no_as_path_all, no_bgp_as_path_all_cmd, diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index f68297685e..9bc973ea39 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -9722,7 +9722,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