]> git.puffer.fish Git - matthieu/frr.git/commitdiff
doc: Specify allowed chars in bgp regular expressions
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Tue, 23 Apr 2019 08:38:59 +0000 (11:38 +0300)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Sat, 22 Jun 2019 07:39:00 +0000 (10:39 +0300)
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
bgpd/bgp_filter.c
bgpd/bgp_route.c

index b02215db3de4d5bd309f13a9a07f1e03c4b78595..592ceef80c8f77126847ec0225a3247b5528813e 100644 (file)
@@ -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;
index fead5fe75f22daf59a15ff0d679e0fc99e10e7d2..96fcbd09de79729146c892e45ba487115d069399 100644 (file)
@@ -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;