The if-match protocol command configures a protocol-based filtering rule to match routes of a specified protocol.
The undo if-match protocol command deletes a protocol-based filtering rule.
By default, no protocol-based filtering rule is configured.
if-match protocol { direct | static | isis | bgp | ospf | rip | unr | ospfv3 | ripng } *
undo if-match protocol
Matches direct routes.
-
Matches static routes.
Matches IS-IS routes.
Matches BGP routes.
Matches OSPF routes.
Matches RIP routes.
Matches UNRs.
Matches OSPFv3 routes.
Matches RIPng routes.
Route-policy view
2: Configuration level
Usage Scenario
To match routes of a specified protocol, run the if-match protocol command.
Prerequisites
A route-policy has been configured using the route-policy command.
<HUAWEI> system-view [~HUAWEI] route-policy policy permit node 10 [*HUAWEI-route-policy] if-match protocol direct static ospf