[j-nsp] apply-path regex for specific interface matching

Michael Gehrmann mgehrmann at macquarietelecom.com
Tue Feb 25 22:48:03 EST 2014


Hi Ben,

I believe this document on the juniper site is what you were looking for.

http://www.juniper.net/techpubs/en_US/junos12.1/topics/concept/junos-cli-wildcard-characters-configuration-groups-usage.html

Cheers
Mike

-----Original Message-----
From: juniper-nsp [mailto:juniper-nsp-bounces at puck.nether.net] On Behalf Of Ben Dale
Sent: Wednesday, 26 February 2014 9:43 AM
To: juniper-nsp at puck.nether.net
Subject: [j-nsp] apply-path regex for specific interface matching

Hi all,

I'm trying to generate a prefix-list for all CE-facing interfaces on a PE (assume L3VPN).

As a test, I'm just trying to match all ge interfaces, but the following returns no match at all:

prefix-list CE-LINKS {
    apply-path "interfaces ge-<*> unit <*> family inet address <*>"; }

I've tried both ge<*>, ge-<*> but no luck either way, and as soon as I remove "ge-", I get all interface prefixes as expected.

I vaguely remember a post here on this a while back, but I haven't been able to track it down and google/Juniper docs are not providing any info.

Is anyone aware of 1) a solution, or 2) any docs that go through what regex is actually available in apply-path?

Thanks,

Ben

_______________________________________________
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