Re: [j-nsp] apply-path and interface addresses

2007-09-08 Thread Erdem Sener
Hey Pekka, The apply-path feature will only act as a regular expression and will never alter your configuration, only expand itself dynamically based on your current configuration and the filtering you've configured. If you want to 'correct' your configuration based on certain additional (cust

Re: [j-nsp] apply-path and interface addresses

2007-09-07 Thread Pekka Savola
Hi, I wonder what was wrong with my tests the first time (on 8.2R1) because none of these worked (didn't return anything), but now they do. I could have sworn that I tested those exactly as written. These don't seem to allow doing 2.b) that I mentioned earlier but maybe it isn't the most impo

Re: [j-nsp] apply-path and interface addresses

2007-09-07 Thread Lei Zhang
Pekka Savola wrote: >Hi, > >Apply-path is a nice feature, but for some reason it doesn't seem to >work for interface addresses, e.g.: > >apply-path "interfaces lo0 unit 0 family inet address <*>"; > > This works for me. Use config mode command "show | display inheritance" to see the result. >

Re: [j-nsp] apply-path and interface addresses

2007-09-07 Thread Erdem Sener
Hi Pekka, The following works for at least 8.2: [edit policy-options] [EMAIL PROTECTED] show prefix-list p1 apply-path "interfaces lo0 unit 0 family inet address <*>"; [edit policy-options] [EMAIL PROTECTED] show prefix-list p1 | display inheritance ## ## apply-path was expanded to: ## 10.0

[j-nsp] apply-path and interface addresses

2007-09-07 Thread Pekka Savola
Hi, Apply-path is a nice feature, but for some reason it doesn't seem to work for interface addresses, e.g.: apply-path "interfaces lo0 unit 0 family inet address <*>"; or: apply-path "interfaces <*> unit <*> family inet address <*>"; or: apply-path "interfaces <*> unit <*> family inet address <