Description

This article provides details about the apply-path configuration 'set policy-options prefix-list BGP-PEERS-V4 apply-path "protocols bgp group <*> neighbor <*>"' for deactivated bgp neighbours

Symptoms

The following configuration applied to the Juniper switch qfx10002-36q and the customer wanted to know whether it is applicable to deactivated

'set policy-options prefix-list BGP-PEERS-V4 apply-path "protocols bgp group <*> neighbor <*>"'

Solution

- The configuration 'set policy-options prefix-list BGP-PEERS-V4 apply-path "protocols bgp group <*> neighbor <*>"' is not applicable for deactivated BGP neighbours

 

Example:

-Following is the BGP neighbour configuration on a switch
 

root@jtac-qfx10002-36q-r2079# show protocols bgp

group ebgp {
type external;
multipath {
multiple-as;
}
neighbor 192.168.1.2 {
peer-as 65001;
}
neighbor 172.16.1.2 {
peer-as 65002;
}
}

group chk {
type internal;
neighbor 1.1.1.1;
neighbor 2.2.2.2;
neighbor 3.3.3.3;
}

group chk1 {
type internal;
neighbor 4.4.4.4;
}


 

-The configuration 'set policy-options prefix-list BGP-PEERS-V4 apply-path "protocols bgp group <*> neighbor <*>"' was applied to the active BGP neighbours [192.168.1.2, 172.16.1.2, 1.1.1.1, 2.2.2.2, 3.3.3.3, 4.4.4.4 ]
 

root@jtac-qfx10002-36q-r2079# show policy-options | display inheritance

prefix-list name {
## apply-path was expanded to:
## 192.168.1.2/32;
## 172.16.1.2/32;
## 1.1.1.1/32;
## 2.2.2.2/32;
## 3.3.3.3/32;
## 4.4.4.4/32;
##
apply-path "protocols bgp group <*> neighbor <*>";
}


- Deactivated neighbour under group chk1 which has neighbour 4.4.4.4


root@jtac-qfx10002-36q-r2079# deactivate protocols bgp group chk1
{master:0}[edit]
root@jtac-qfx10002-36q-r2079# commit

configuration check succeeds
commit complete


-After deactivating the BGP neighbour 4.4.4.4 is not part of the apply-group

root@jtac-qfx10002-36q-r2079# show policy-options | display inheritance
prefix-list name {
##
## apply-path was expanded to:
## 192.168.1.2/32;
## 172.16.1.2/32;
## 1.1.1.1/32;
## 2.2.2.2/32;
## 3.3.3.3/32;
##
apply-path "protocols bgp group <*> neighbor <*>";
}

 

 

 

Modification History

2024-07-09 : Article Created