Support for Route Maps for OSPF Routes


Route maps are the only way to associate a redistribute metric or metric-type for OSPFv3 and currently, you cannot configure metrics for OSPF. In this release, you can now define a route map to prevent OSPF routes from being added to the routing table. This filtering happens at the moment when OSPF is installing the route in the routing table.


Before you configure route maps, configure a list of prefixes using the following command:


CLI (network-admin@Leaf1) > vrouter-prefix-list-add

 

Use the following set of commands to configure route maps for OSPF:


CLI (network-admin@Leaf1) > vrouter-route-map-add


vrouter-name name-string

Specify the name of the vRouter service.

name name-string

Specify the name for the route map.

seq integer

Specify the sequence number as an integer between 1 and 4294967295.

action permit|deny

Specify the route map action as permit or deny.

match-prefix vrouter prefix-list name-string

Specify the name of the prefix list used for the route map.

community-attribute unset|none|no-export|no-advertise|
internet|local-AS

Specify the community attribute for the route map.

local-pref integer

Specify the local preference as an integer between -1 and 4294967295.

metric none

Specify the metric as none.

metric-type 1|2

Specify the metric type as 1 or 2.

 

CLI (network-admin@Leaf1) > vrouter-route-map-remove


vrouter-name name-string

Specify the name of the vRouter service.

name name-string

Specify the name for the route map.

seq integer

Specify the sequence number as an integer between 1 and 4294967295.


CLI (network-admin@Leaf1) > vrouter-route-map-show


vrouter-name name-string

Displays the name of the vRouter service.

name name-string

Displays the name for the route map.

seq integer

Displays the sequence number as an integer between 1 and 4294967295.

action permit|deny

Displays the route map action as permit or deny.

match-prefix vrouter prefix-list name-string

Displays the name of the prefix list used for the route map.

community-attribute unset|none|no-export|no-advertise|
internet|local-AS

Displays the community attribute for the route map.

local-pref integer

Displays the local preference as an integer between -1 and 4294967295.

metric none

Displays the metric as none.

metric-type 1|2

Displays the metric type as 1 or 2.