summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-10-12 18:20:24 +0000
committerViacheslav <v.gletenko@vyos.io>2021-10-12 18:20:24 +0000
commite94112281d58dd4388917a7fca2af9bd4fce8b8c (patch)
tree9613de61e8084beaa76b2bb88b3c8dbcc338845f /src
parent46e331cdf44b7880f6e2f5fefaa1f536829f6ebc (diff)
downloadvyos-1x-e94112281d58dd4388917a7fca2af9bd4fce8b8c.tar.gz
vyos-1x-e94112281d58dd4388917a7fca2af9bd4fce8b8c.zip
validators: T3868: Allow asterisk symbol in bgp-large-community-list
Diffstat (limited to 'src')
-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)