From 791e894e810796a5a0cfc47e68464130e6a9c76b Mon Sep 17 00:00:00 2001 From: Massimo Candela Date: Fri, 27 Sep 2019 23:17:59 +0200 Subject: [PATCH] Update prefixes.md --- docs/prefixes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/prefixes.md b/docs/prefixes.md index 8a3e234..75c165e 100644 --- a/docs/prefixes.md +++ b/docs/prefixes.md @@ -59,7 +59,7 @@ Below the complete list of attributes: | includeMonitors | The list of monitors you want to run on this prefix. If this attribute is not declared, all monitors will be used. Not compatible with excludeMonitors. | An array of strings (monitors name according to config.yml) | No | | excludeMonitors | The list of monitors you want to exclude on this prefix. Not compatible with includeMonitors. | An array of strings (monitors name according to config.yml) | No | | path | A dictionary containing all sub-attributes for path matching. All the sub-attributes are in AND.| Sub-attributes (as follows) | No | -| path.match | The regular expression that will be tested on each AS path. If the expression tests positive the BGP message triggers an alert. ASns are comma separated (see example above). **Please, use optimized regular expression as described [here](#optimized-regular-expressions-for-as-path-match)** | A string (valid RegEx) | No | +| path.match | The regular expression that will be tested on each AS path. If the expression tests positive the BGP message triggers an alert. ASns are comma separated (see example above). **Please, use optimized regular expression as described [in the following sub-section](#optimized-regular-expressions-for-as-path-matching)** | A string (valid RegEx) | No | | path.notMatch | The regular expression that will be tested on each AS path. If the expression tests positive the BGP message will not triggers an alert. ASns are comma separated (see example above). | A string (valid RegEx) | No | | path.matchDescription | The description that will be reported in the alert in case the regex test results in a match. | A string | No | | path.maxLength | The maximum length allowed for an AS path. Longer paths will trigger an alert. | A number | No | @@ -67,7 +67,7 @@ Below the complete list of attributes: -### Optimized regular expressions for AS path match +### Optimized regular expressions for AS path matching The following simple regular expressions will drastically reduce CPU and network usage when applied to the `path.match` attribute. Instead, there are no benefits in applying the following regular expressions to the `path.notMatch` attribute.