[j-nsp] question about policy-statement

kura at iij.ad.jp kura at iij.ad.jp
Thu Aug 27 01:26:07 EDT 2009


Answer: 1.

(w/ 9.6R1.13)
|[edit protocols bgp group E]
|# show
|apply-groups g1;
|neighbor 10.0.0.1 {
|    apply-groups g2;
|    import p03;
|    peer-as 102;
|}
|
|[edit protocols bgp group E]
|# show | display inheritance
|neighbor 10.0.0.1 {
|    ##
|    ## 'p02' was inherited from group 'g2'
|    ## 'p01' was inherited from group 'g1'
|    ##
|    import [ p03 p02 p01 ];     <<<<<
|    peer-as 102;
|}
|
|[edit protocols bgp group E]
|# run show bgp neighbor 10.0.0.1 | match Import:
|  Import: [ p03 p02 p01 ]       <<<<<

-- 
Tomohiko Kurahashi <kura at iij.ad.jp>


From: lz6 at njit.edu
Date: Thu Aug 27 2009 13:18:49 JST
>
> All,
> 
> In configuration below, groupA and groupB import policy-statement 1 and 2,
> respectively. So, what is the sequence of import policy neighbor 10.0.0.1
> should go through? Should it be
> 1. policy-statement-3, then 2, then 1? or
> 2. policy-statement-3 only? or
> 3 something else?
> 
>  group MyGroup {
>   apply-groups [groupA];
>   neighbor 10.0.0.1 {
>    apply-groups groupB;
>    import policy-statement-3;
>   }
>  }
> 
> Thanks,
> 
> Li


More information about the juniper-nsp mailing list