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.
- If condition-filter is specified, the system checks whether the route to be advertised exists in the condition-filter-list. If yes, the system checks dependent routes. Otherwise, the route is directly advertised.
- If condition-filter is not specified, the system checks the dependent routes for all routes to be advertised by default.
The outDependType parameter specifies the dependency check type.
- match-all: indicates that the route is advertised only when all the routes specified in the dependent-filter-list are active.
- match-one: indicates that the route is advertised as long as there is an active route in the dependent filter list.
- match-none: indicates that the route is advertised only when all routes in the dependent-filter-list are inactive.
Prerequisites
An IP prefix list has been created using the filter-list ip-prefix command.
Configuration Impact
If you run this command for the same peer, the latest configuration overwrites the previous one.