Hello, Have you tried this?
set policy-options community MATCH2 members [ 123:1 123:2 ] I believe this will result in a logical AND. Serge On Thu, Apr 6, 2017 at 8:47 AM, "Rolf Hanßen" <[email protected]> wrote: > Hello, > > please show me an example, maybe I understood wrong. > If I just create multiple policies and add them to the import/export > statement, they are processed indiviually one after another. > This would result in the same OR-behaviour. > > If this match was the whole policy I could combine 2 terms that do an > invert-match and reject them (and accept in a 3rd term) but this sounds > even worse than a new community to me. ;) > > kind regards > Rolf > > > 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" <[email protected]> > > 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 [email protected] > >> https://puck.nether.net/mailman/listinfo/juniper-nsp > >> > > > > > _______________________________________________ > juniper-nsp mailing list [email protected] > https://puck.nether.net/mailman/listinfo/juniper-nsp > _______________________________________________ juniper-nsp mailing list [email protected] https://puck.nether.net/mailman/listinfo/juniper-nsp

