I need to verify that the following regex will match against my criteria, which is:
- Deny any prefixes beginning with
0:
- Deny any prefixes beginning with
65000:
- Deny any prefixes beginning with
0:65000
- Deny any prefixes beginning with
65000:65000
- Permit any prefixes with any communities tagged
- Permit any prefixes with no communities tagged
The platform is Quagga.
Here is my expanded community-list:
ip community-list expanded ANY-COMMUNITIES deny ^(0:.*)_(.*)_+$
ip community-list expanded ANY-COMMUNITIES deny ^(65000:.*)_(.*)_+$
ip community-list expanded ANY-COMMUNITIES deny ^(0:65000)_(.*)_+$
ip community-list expanded ANY-COMMUNITIES deny ^(65000:65000)_(.*)_+$
ip community-list expanded ANY-COMMUNITIES permit ^(.*)_+$
ip community-list expanded ANY-COMMUNITIES permit ^$
Will this cover what I'm after? Is there a better way?