Policy > Networking > Connectivity > Routing > Prefix List

Create or patch a prefix list

If prefix list for prefix-list-id is not already present, create
a prefix list. If it already exists, patch prefix list for prefix-list-id.
Note:
Patching existing prefix-list's "prefixes" property will overwrite the existing prefixes.
GET and PATCH is the expected set of operations to update or append new entries to the existig prefixes.
Patching existing prefixes require order to be preserved to avoid traffic impact. During PATCH operation,
reordering of existing prefixes may impact routes and eventually datapath.
Order here is crucial and it all depends upon action. If action for every prefix is PERMIT then order may
not impact but if there is DENY prefix then change in ordering could lead to traffic impact.

Request:

Method:
PATCH
URI Path(s):
/policy/api/v1/infra/routing-config/prefix-lists/{prefix-list-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
PrefixList+

Example Request:

PATCH https://<policy-mgr>/policy/api/v1/infra/routing-config/prefix-lists/pl-1 { "prefixes": [ { "network":"30.1.1.0/24", "action":"PERMIT" }, { "network":"10.1.1.0/24", "action":"DENY" } ] }

Successful Response:

Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a

Example Response:

200 OK

Required Permissions:

crud

Feature:

policy_t0

Additional Errors: