set extended-community ospf-route-type

Use this command to specify an action for an extended community OSPF route type when all match clauses match for this route map.

Syntax

set extended-community ospf-route-type area route-type type [type2-metric] {remove-all | remove-specific | set-specific | remove-all-and-set}
no set extended-community ospf-route-type area route-type type [type2-metric] {remove-all | remove-specific | set-specific | remove-all-and-set}

Parameters

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:
  • 1 or 2 - intra-area routes (depending on whether the route came from a type 1 or a type 2 LSA
  • 3 - inter-area routes
  • 5 - external routes (area number must be 0)
  • 7 - NSSA routes
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

Defaults

If the type2-metric option is not specified, a type 1 metric is used.

Mode

BGP route map configuration.

Usage

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.

Example

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)->