summaryrefslogtreecommitdiff
path: root/src/validators/bgp-large-community-list
diff options
context:
space:
mode:
Diffstat (limited to 'src/validators/bgp-large-community-list')
-rwxr-xr-xsrc/validators/bgp-large-community-list2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validators/bgp-large-community-list b/src/validators/bgp-large-community-list
index c07268e81..80112dfdc 100755
--- a/src/validators/bgp-large-community-list
+++ b/src/validators/bgp-large-community-list
@@ -30,7 +30,7 @@ if __name__ == '__main__':
sys.exit(1)
if not (re.match(pattern, sys.argv[1]) and
- (is_ipv4(value[0]) or value[0].isdigit()) and value[1].isdigit()):
+ (is_ipv4(value[0]) or value[0].isdigit()) and (value[1].isdigit() or value[1] == '*')):
sys.exit(1)
sys.exit(0)