summaryrefslogtreecommitdiff
path: root/bgpd
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2019-04-24 11:54:35 -0400
committerGitHub <noreply@github.com>2019-04-24 11:54:35 -0400
commit9237bd1807de7d20d791c380eb3e067cf8c86c87 (patch)
treeb315fd3018d8b6ee56beecf8d0f421aba98f6c02 /bgpd
parente400cd8aac83243ca47ae0797407a06b08d1dbb8 (diff)
parenta818ea74e69fa60401377a7525c2b6465243bbbd (diff)
Merge pull request #4184 from ton31337/fix/documentation_for_as-path_regexp
doc: Specify allowed chars in bgp regular expressions
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_filter.c8
-rw-r--r--bgpd/bgp_route.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/bgpd/bgp_filter.c b/bgpd/bgp_filter.c
index b262f6b56d..d4f608d40f 100644
--- a/bgpd/bgp_filter.c
+++ b/bgpd/bgp_filter.c
@@ -407,7 +407,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;
@@ -475,7 +475,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 <deny|permit> LINE...",
@@ -486,7 +486,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;
@@ -563,7 +563,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 7850666085..36d1369eb0 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -9934,7 +9934,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;