Hi,
We are using the below configuration
[edit policy-options]
+ community TEST members [ 1000:333 1000:4900 1000:4500 1000:4100 ];
[edit policy-options policy-statement exp-spl-sub-prefixes]
+ term match-community {
+ from {
+ protocol bgp;
+ community TEST;
+ }
+ then accept;
+ }
+ term next-policy {
+ then next policy;
+ }
But when tested for route with just one BGP Community it show route as accepted
> test policy TEST 45.112.196.0/22
45.112.196.0/22 *[BGP/170] 1w0d 14:11:31, localpref 250, from x.x.x.x
AS path: 45630 134088 I, validation-state: unverified
> to y.y.y.y via xe-0/1/0.0, Push 556552
Policy exp-spl-sub-prefixes: 1 prefix accepted, 0 prefix rejected