efa policy prefix-list update
Configures prefix list rules on specified devices.
Syntax
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
- The add-device and remove-device operations configure the prefix list rules on the specified devices.
- The add-rule and remove-rule operations add or remove a prefix list rule on the specified devices. If the prefix list is configured on the device, the rule is added or removed from the device.
- This command is also used to add or delete a prefix-list rule.
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]