Hi,
The idea of a group is not to contrast them each other, but doing configuration compact and apply general statements using wildcards.
If try, you will see that you can't use wildcards right in configuration, but you can use them in groups, avoiding repetition of the statements every time.
For example, you create this kind of a group:
PE-1> show configuration groups ce-ebgp-attr
routing-instances {
<*> {
protocols {
bgp {
group <ce-*> {
type external;
metric-out 200;
log-updown;
family inet {
unicast {
prefix-limit {
maximum 100;
teardown {
idle-timeout 10;
}
}
}
}
}
}
}
}
}
PE-1> show configuration routing-instances vpn-b
apply-groups ce-ebgp-attr;
instance-type vrf;
protocols {
bgp {
group ce-ebgp {
type external;
peer-as 65532;
as-override;
neighbor 10.2.0.1;
}
}
}
interface ge-0/0/3.0;
route-distinguisher 172.17.20.1:2;
vrf-target target:65512:2;
vrf-table-label;
PE-1> show configuration routing-instances vpn-b | display inheritance no-comments
instance-type vrf;
protocols {
bgp {
group ce-ebgp {
type external;
metric-out 200;
log-updown;
family inet {
unicast {
prefix-limit {
maximum 100;
teardown {
idle-timeout 10;
}
}
}
}
peer-as 65532;
as-override;
neighbor 10.2.0.1;
}
}
}
interface ge-0/0/3.0;
route-distinguisher 172.17.20.1:2;
vrf-target target:65512:2;
vrf-table-label;
WBW,
Dmitry
------------------------------
Dmitry Maksimov
------------------------------
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
------------------------------