Hello Ahsan, here is my test in the lab, if both groups are applied, you will get the config as below,
[edit]
root@router-re0# show routing-instances TEST | display inheritance no-comments
protocols {
bgp {
group CUSTOMER-EBGP {
import [ REJECT-ROUTES IMPORT-BGP-ROUTES ];
}
}
}
[edit]
root@router-re0# show apply-groups | display set
set apply-groups MAINTENANCE
set apply-groups CUSTOMER
Kevin B.
JNCIE-SP #2682
Original Message:
Sent: 02-16-2024 08:39
From: aljoush12
Subject: Question about Configuration Groups
Hello Experts,
I am new to configuration groups and I am testing it in my lab. I have an existing group named "CUSTOMER" with bgp group and import policy. I have created another group named " MAINTENANCE" with a bgp group and import policy. I assumed the new group import policy would overwrite the existing group import policy. Can you please tell me if I am doing anything wrong here or if it is not possible to overwrite the existing group statement with a new group statement? I appreciate your advice.
set groups CUSTOMER routing-instances TEST protocols bgp group CUSTOMER-EBGP import IMPORT-BGP-ROUTES
set groups MAINTENANCE policy-options policy-statement REJECT-ROUTES then reject
set groups MAINTENANCE routing-instances TEST protocols bgp group CUSTOMER-EBGP import REJECT-ROUTES
set apply-groups MAINTENANCE
------------------------------
Ahsan Khan
------------------------------