efa policy route-map update

Adds or deletes the route map configuration on a list of devices. Can be used to update the action for a given route map rule.

Syntax

efa policy route-map update [ --name string | --rule string | --operation add-device | remove-device | update-action | --ip string]

Parameters

--name string
Specifies the name of the route map that you want to update.
--rule string
Specifies the rule in the following format: seq[seq-num],action[permit/deny].
--operation add-device | remove-device | update-action
Specifies the type of operation that you want to perform.
--ip string
Specifies a comma-separated range of device IP addresses. For example: 1.1.1.1-3,1.1.1.2,2.2.2.2.

Usage Guidelines

A route map can be associated with multiple rules.

For an add-device operation, specify only the device IP address and route map name. The operation adds all the rules of the route map on the specified devices.

For a remove-device operation, specify only the device IP address and route map name. The operation deletes all the rules of the route map on the specified devices.
Note

Note

The remove-device operation fails if the route map is bound to a BGP neighbor.

For an update-action operation, specify the route map name and the rule. You can modify the action to permit or deny for a specific rule. You can provide only one rule at a time.

Examples

This example configures a route map rule on devices 10.20.246.10 and 10.20.246.11. Assume there are two route map rules for a map named rmap_1 that already exists in EFA:
  • rmap_1 seq 5 action permit
  • rmap_1 seq 10 action permit
efa policy route-map update –-name rmap_l –-operation add-device 
--ip 10.20.246.10-11 

This example removes a route map from the specified devices.

efa policy route-map update –-name rmap_l –-operation remove-device 
--ip 10.20.246.10-11 

This example changes the action from permit to deny for the specified rule.

efa policy route-map update –-name rmap_l 
–-rule seq[5],action[deny] –-operation update-action