set extended-community ospf-router-id

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

Syntax

set extended-community ospf-router-id set-value {remove-all | remove-specific | set-specific | remove-all-and-set}
no set extended-community ospf-router-id set-value {remove-all | remove-specific | set-specific | remove-all-and-set}

Parameters

ospf-router-id set-value Specifies that an OSPF router ID with a set value in the format: 4 byte dotted decimal as defined in RFC 4577.
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

None.

Mode

BGP route map configuration.

Usage

The default value for the set extended-community ospf-router-id command is no OSPF router ID specified.

The no set extended-community ospf-router-id command removes the specified OSPF router ID clause from the route map.

Example

This example shows how remove all matching extended communities from the route for OSPF router ID 1.1.1.1 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-id 1.1.1.1 remove-specific
System(su-config-route-map-bgp)->