[j-nsp] matching NO community

Stefan Fouant sfouant at shortestpathfirst.net
Fri Oct 8 15:20:43 EDT 2010


> -----Original Message-----
> From: juniper-nsp-bounces at puck.nether.net [mailto:juniper-nsp-
> bounces at puck.nether.net] On Behalf Of Bit Gossip
> Sent: Friday, October 08, 2010 9:52 AM
> To: juniper-nsp at puck.nether.net
> Subject: [j-nsp] matching NO community
> 
> Experts,
> in Junos policy language, is it possible, and how, to match route with
> NO community attached?

I've done something like this in the past to match on community strings... I
don't have access to my configs but IIRC it's something along the lines of:

set policy-options policy-statement no-community-match term
no-communities-accept from community no_comms
set policy-options policy-statement no-community-match term
no-communities-accept then accept
set policy-options community no_comms members "^$"

HTHs.

Stefan Fouant, CISSP, JNCIEx2
www.shortestpathfirst.net
GPG Key ID: 0xB5E3803D



More information about the juniper-nsp mailing list