From e94112281d58dd4388917a7fca2af9bd4fce8b8c Mon Sep 17 00:00:00 2001 From: Viacheslav Date: Tue, 12 Oct 2021 18:20:24 +0000 Subject: validators: T3868: Allow asterisk symbol in bgp-large-community-list --- src/validators/bgp-large-community-list | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/validators/bgp-large-community-list') 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) -- cgit v1.2.3