The peer advertise dependent-filter command configures a conditional BGP route advertisement policy.
The undo peer advertise dependent-filter command cancels the configuration of a conditional BGP route advertisement policy.
By default, conditional advertisement is not enabled.
peer groupName advertise dependent-filter dependent-filter-list outDependType [ condition-filter condition-filter-list ]
undo peer groupName advertise dependent-filter dependent-filter-list outDependType [ condition-filter condition-filter-list ]
undo peer groupName advertise dependent-filter
Parameter | Description | Value |
---|---|---|
groupName |
Specifies the name of a peer group. |
The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
dependent-filter dependent-filter-list |
Specifies the name of a dependent route prefix list. |
The value is a string of 1 to 63 case-sensitive characters. It cannot contain spaces. |
outDependType |
Specifies the matching type. |
The value is an enumerated type, which can be:
|
condition-filter condition-filter-list |
Specifies the name of the prefix list for conditional route advertisement. |
The value is a string of 1 to 63 case-sensitive characters. It cannot contain spaces. |
Usage Scenario
Conditional advertisement provides additional control over BGP route advertisement. Before advertising routes, the system checks whether the specified dependent routes exist in the BGP routing table and determines whether to advertise BGP routes accordingly.
The condition-filter parameter is optional and is used to specify the routes for which conditional advertisement is enabled.The outDependType parameter specifies the dependency check type.
Prerequisites
An IP prefix list has been created using the filter-list ipv6-prefix command.
Configuration Impact
If you run this command for the same peer, the latest configuration overwrites the previous one.
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vrf [*HUAWEI-vpn-instance-vrf] ipv6-family [*HUAWEI-vpn-instance-vrf-af-ipv6] quit [*HUAWEI-vpn-instance-vrf] quit [*HUAWEI] filter-list ipv6-prefix cond-list [*HUAWEI-ipv6-prefix-list-cond-list] prefix 2001:db8:2:: 96 [*HUAWEI-ipv6-prefix-list-cond-list] quit [*HUAWEI] filter-list ipv6-prefix depend-list [*HUAWEI-ipv6-prefix-list-depend-list] prefix 2001:db8:3:: 96 [*HUAWEI-ipv6-prefix-list-depend-list] prefix 2001:db8:4:: 96 [*HUAWEI-ipv6-prefix-list-depend-list] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] vpn-instance vrf [*HUAWEI-bgp-instance-vrf] group grp [*HUAWEI-bgp] ipv6-family vpn-instance vrf [*HUAWEI-bgp-6-vrf] peer grp enable [*HUAWEI-bgp-6-vrf] peer grp advertise dependent-filter depend-list match-all condition-filter cond-list