[j-nsp] Using apply-path for generating prefix lists

Thomas Eichhorn te at te3networks.de
Thu Feb 10 05:57:39 EST 2011


Okay, please forget my request,
apply-path "protocols bgp group <*>-6 neighbor <*> does work
if you commit before "show | display inheritance".

It seems its too early for me,

Tom


Am 10.02.2011 11:19, schrieb Thomas Eichhorn:
> Hi all,
> 
> I usually use something like that to generate a prefix-list
> of all known bgp-speakers on our boxes:
> 
> [edit policy-options prefix-list BGP-Speaker]
> teichhorn at router# show
> apply-path "protocols bgp group <*> neighbor <*>";
> 
> That works almost fine - but of course it includes
> v4 and v6 neighbors. That is not of a problem if using
> this prefix list in an IPv4 firewall - the v6 entries are
> simply ignored.
> 
> But when using this prefix-list in an IPv6 firewall,
> it breaks because only the v4-IPs seems to be considered.
> 
> So my idea was to filter down to specific groups - all
> IPv6 bgp groups end with "-6", so I tried:
> 
> apply-path "protocols bgp group <*-6> neighbor <*>"
> and
> apply-path "protocols bgp group <*>-6 neighbor <*>"
> 
> But none worked - and I haven't found some examples for
> mixing wildcard with specific strings in here.
> 
> Has anybody any hint for me or even a better solution
> than my approach?
> 
> Thanks,
> Tom
> _______________________________________________
> 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