]> git.proxmox.com Git - mirror_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>
Tue, 23 Apr 2019 19:35:20 +0000 (22:35 +0300)
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
bgpd/bgp_filter.c
bgpd/bgp_route.c

index a788ea68f3fb1db630b310b5713f281eacd21a21..41fee07825fb8d5f946913096757479629637c5e 100644 (file)
@@ -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,
index 7036ededac405dae3f24c2e38920bb6dd76e2edb..638b2b02b50b43bfc3b68ab05be4a4b2b2cae9f7 100644 (file)
@@ -9927,7 +9927,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;