Use this command to specify an action for an extended community OSPF route type when all match clauses match for this route map.
area | Specifies an OSPF area. |
route-type type | Specifies that an OSPF route-type extended community as defined in RFC 4577 will be set with one of the following values:
|
type2-metric | (Optional) Specifies that the OSPF metric is a type-2 metric |
remove-all | Specifies that the action is to remove all extended communities from the route for this match |
remove-specific | Remove all matching extended communities from the route |
set-specific | Append the specified extended community to the route |
remove-all-and-set | Replace any existing extended communities in the route with the specified extended community |
If the type2-metric option is not specified, a type 1 metric is used.
BGP route map configuration.
The default value for the set extended-community ospf-router-type command is no OSPF router type specified.
The no set extended-community ospf-router-type command removes the specified OSPF router type clause from the route map.
This example shows how remove all matching extended communities from the route for area 100 external OSPF routes when all match clauses match for route map bgprm1:
System(su)->configure System(su-config)->route-map bgp bgprm1 permit System(su-config-route-map-bgp)->set extended-community ospf-router-type 100 router-type 5 remove-specific System(su-config-route-map-bgp)->