efa policy prefix-list update

Configures prefix list rules on specified devices.

Syntax

efa policy prefix-list update [ --type string | --name string | --operation { add-rule | remove-rule | add-device | remove-device } | --rule stringArray | --ip string ]

Parameters

--type string
Specifies the type of prefix list. The only valid value is ipv4.
--name string
Specifies the name of the prefix list.
--operation { add-rule | remove-rule | add-device | remove-device }
Specifies the operation to perform.
--rule stringArray
Specifies the rule of the prefix list, in the following format: seq[seq-num],action[permit/deny],prefix[IPv4 prefix],ge[prefix-len],le[prefix-len]. For example: seq[5],action[permit],prefix[10.0.0.0/8],ge[10],le[24].
--ip string
Specifies a comma-separated range of device IP addresses. For example: 10.1.1.13,10.1.1.50,10.1.1.101.

Usage Guidelines

Examples

This example configures a prefix list on the specified devices.

efa policy prefix-list update –-name prefix_v4 
–-type ipv4 –-operation add-device --ip 10.20.246.10-11

This example removes the prefix list from the specified devices.

efa policy prefix-list update –-name prefix_v4 –-type ipv4 
–-operation remove-device --ip 10.20.246.10-11

This example adds a rule to an existing prefix list.

efa policy prefix-list update –-name prefix_v4 
–-type ipv4 –-operation add-rule 
–-rule seq[5],action[permit],prefix[10.0.0.0/8],ge[16]

This example removes a rule from an existing prefix list.

efa policy prefix-list update –-name prefix_v4 
–-type ipv4 –-operation remove-rule 
–-rule seq[5],action[permit],prefix[10.0.0.0/8],ge[16]