[j-nsp] Match multiple bgp communities in a policy with AND condition

Tomasz Mikołajek tmikolajek at gmail.com
Thu Apr 6 07:11:44 EDT 2017


Hello. You need to Creat 2 policy and make AND in export import protokół
statement.
W dniu czw., 6.04.2017 o 13:04 "Rolf Hanßen" <nsp at rhanssen.de> napisał(a):

> Hello,
>
> I wanted to match 2 named communities in a policy and I am interested how
> you solve such things.
>
> policy-options {
>         policy-statement xy {
>                 from {
>                         community [a b];
>                 }
>         }
>         community a members 123:1;
>         community b members 123:2;
> }
>
> This matches in case one of the communities is set (typical Juniper OR
> condition).
>
> Is there a way to match "one" AND "two"?
> I would like to avoid creating a third community with both members set
> because in case of many combinations this does not scale well.
>
> Is there maybe even a way to combine both like "a and (b or c)"?
>
> Kind regards
> Rolf
>
>
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/juniper-nsp
>


More information about the juniper-nsp mailing list