The main reason it trying to find value without "seq x" in config that contain "seq x"
Find value
bgp community-list 100 permit .*
Config value
'bgp community-list 100 seq 5 permit .*\nbgp community-list 200 seq 5 deny ^1:201$\nbgp community-list 200 seq 10 deny 1:101$\nbgp community-list 200 seq 15 deny ^1:100$\n!'
Test
07:19:39 DEBUG - FAIL: test_community_list (__main__.TestPolicy) 07:19:39 DEBUG - ---------------------------------------------------------------------- 07:19:39 DEBUG - Traceback (most recent call last): 07:19:39 DEBUG - File "/usr/libexec/vyos/tests/smoke/cli/test_policy.py", line 382, in test_community_list 07:19:39 DEBUG - self.assertIn(tmp, config) 07:19:39 DEBUG - AssertionError: 'bgp community-list 100 permit .*' not found in 'bgp community-list 100 seq 5 permit .*\nbgp community-list 200 seq 5 deny ^1:201$\nbgp community-list 200 seq 10 deny 1:101$\nbgp community-list 200 seq 15 deny ^1:100$\n!' 07:19:39 DEBUG - 07:19:39 DEBUG - ======================================================================