Juniper Netconf icon

Juniper Netconf

Interact with Juniper devices via NETCONF

Commit Configuration

AI-generated

Summary

Commit configuration changes to a Juniper device via NETCONF with options for commit confirmation, timeout, synchronization, and commit check.

Inputs

  • host (required) — IP address or hostname of the Juniper device to connect to.
  • port (required) — NETCONF over SSH port (default is 830).
  • commitTimeoutMs — Timeout for the commit operation in milliseconds (default 120000 ms).
  • commitComment — Optional comment to document the commit. Leave empty for no comment.
  • commitConfirmed — Whether to perform a confirmed commit requiring explicit confirmation to finalize. If true, confirmation must occur before timeout to avoid automatic rollback.
  • confirmTimeout — Timeout in minutes before automatic rollback if a confirmed commit is not explicitly confirmed (default is 10 minutes). Requires commitConfirmed to be true.
  • checkOnly — Whether to perform only a commit check without actually committing the configuration changes.
  • commitSynchronize — Whether to synchronize the commit operation across all routing engines of the device.
  • includeRawXmlCommit — Whether to include the raw XML response from the device in the output for debugging purposes.

Output shape

a list where each item contains the commit operation result as a JSON object

The output JSON includes properties such as operation type (commit, commit-check, or commit-confirmed), success status, and any error messages. If includeRawXmlCommit is set to true, the raw XML response from the device is included under the 'rawXml' property.

Examples

Example 1: Commit configuration with confirmation and comment

Commits configuration on Juniper device 10.0.0.1 port 830 with a comment and commit-confirmed enabled with 5 minutes timeout, and includes raw XML in output.

Discussion