summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-10-12 20:37:43 +0200
committerGitHub <noreply@github.com>2021-10-12 20:37:43 +0200
commit38421c50e9bda8a60413df99136227a9bd3758ef (patch)
tree9613de61e8084beaa76b2bb88b3c8dbcc338845f
parent46e331cdf44b7880f6e2f5fefaa1f536829f6ebc (diff)
parente94112281d58dd4388917a7fca2af9bd4fce8b8c (diff)
downloadvyos-1x-38421c50e9bda8a60413df99136227a9bd3758ef.tar.gz
vyos-1x-38421c50e9bda8a60413df99136227a9bd3758ef.zip
Merge pull request #1025 from sever-sever/T3868
validators: T3868: Allow asterisk symbol in 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)