- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
REGEX in Policy Compliance Check
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2019 09:12 AM
Trying to use regex in a policy compliance rule to check OSPF areas and when I test the policy keep getting errors stating the line does not exist.
The regex is
area (1\.1\.1\.1|2\.2\.2\.2|3\.3\.3\.3|4\.4\.4\.4|5\.5\.5\.5|8\.8\.8\.8) stub
and the config I'm testing against contains the line
area 3.3.3.3 stub 100 no-summary
I've tried escaping with / at various points in the statement with no improvement.
Any suggestions?
Re: REGEX in Policy Compliance Check
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2019 10:37 AM - edited 11-25-2019 10:38 AM
Do all the configs look something like this
area 3.3.3.3 stub 100 no-summary
Or some that might have
area 1.1.1.1 stub 100 no-summary
etc...
Twitter: https://twitter.com/sifbaksh
https://sifbaksh.com
Re: REGEX in Policy Compliance Check
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2019 01:33 PM
The area will be 1.1.1.1, 2.2.2.2, 3.3.3.3, 4.4.4.4, 5.5.5.5 or 8.8.8.8 depending upon where in our environment it exists. Which is why I was using (x.x.x.x|y.y.y.y) as a selector.