Actions11
Set Policy Options Prefix List
AI-generatedSummary
Set or update a policy-options prefix list on a Juniper device via NETCONF, specifying the prefix list name and the network prefix to include. Optionally auto-commit the configuration change with a configurable timeout.
Inputs
- Host (required) — The hostname or IP address of the Juniper device.
- Port (required) — The NETCONF over SSH port (default 830).
- Prefix List Name (required) — Name of the prefix list to set or update (e.g., 'W-661').
- Network Prefix (required) — Network prefix to add to the prefix list (e.g., '103.132.164.0/22').
- Auto Commit — Whether to automatically commit the configuration changes after applying the prefix list.
- Commit Timeout (Ms) — Timeout in milliseconds for the commit operation if auto commit is enabled (default 120000 ms).
Output shape
a single JSON object representing the Juniper RPC reply wrapped in a 'configuration-result' structure indicating edit and commit results.
If 'Auto Commit' is true, the node runs an edit-config RPC to set the prefix list and then commits the change; both results are returned. If false, only the edit-config result is returned with a commit status of 'not-committed'. Errors during RPCs will cause node execution failure unless 'Continue on Fail' is enabled.
Examples
Example 1: Adding a new prefix to a policy-options prefix list with automatic commit
Set Prefix List Name to 'W-661', Network Prefix to '103.132.164.0/22', Auto Commit enabled, commit timeout left default (2 minutes). Host and Port configured for target Juniper device.