On 7 Apr 2014, at 6:37 pm, Dave Bell <m...@geordish.org<mailto:m...@geordish.org>> wrote:
I'm not sure you can do exactly what you are interested in. I would use two prefix lists as follows. policy-options { prefix-list list1 { apply-path "interfaces <ae*> unit <*> family inet address <*>"; } prefix-list list2 { apply-path "interfaces <ge-1/[01]/[0-5]> unit <*> family inet address <*>"; } } Thanks Dave and Tim - looks like multiple lists will have to do. On 7 April 2014 02:45, Ben Dale <bd...@comlinx.com.au<mailto:bd...@comlinx.com.au>> wrote: 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 <mgehrm...@macquarietelecom.com<mailto:mgehrm...@macquarietelecom.com>> 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:juniper-nsp-boun...@puck.nether.net<mailto:juniper-nsp-boun...@puck.nether.net>] > On Behalf Of Ben Dale > Sent: Wednesday, 26 February 2014 9:43 AM > To: juniper-nsp@puck.nether.net<mailto:juniper-nsp@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@puck.nether.net<mailto:juniper-nsp@puck.nether.net> > https://puck.nether.net/mailman/listinfo/juniper-nsp _______________________________________________ juniper-nsp mailing list juniper-nsp@puck.nether.net<mailto:juniper-nsp@puck.nether.net> https://puck.nether.net/mailman/listinfo/juniper-nsp _______________________________________________ juniper-nsp mailing list juniper-nsp@puck.nether.net https://puck.nether.net/mailman/listinfo/juniper-nsp