Dredging up an old thread here, but I have a requirement for an apply-path that matches ae* and ge-1/[01]/[0-4] unit * (for a prefix-list).
I must be missing something fundamental about the regex you can use in apply-path though, because all combinations I've tried seem to fail. About as close as I can get to something that actually gives me results is "interfaces <[ae|ge-1/0/]*> unit <*> family net address <*>" which isn't all that useful. It doesn't look like apply-path supports any nesting of regexes either eg: interfaces <[ae|ge-1/[01]/]*> returns no results at all Any thoughts? On 26 Feb 2014, at 1:48 pm, Michael Gehrmann <[email protected]> wrote: > 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:[email protected]] On Behalf Of > Ben Dale > Sent: Wednesday, 26 February 2014 9:43 AM > To: [email protected] > 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 [email protected] > https://puck.nether.net/mailman/listinfo/juniper-nsp _______________________________________________ juniper-nsp mailing list [email protected] https://puck.nether.net/mailman/listinfo/juniper-nsp

