config_diff
Preview configuration changes with a dry-run diff, redacting credentials and supporting merge or full-replace modes.
Instructions
[READ] DRY-RUN: stage a candidate, return the diff, then discard it.
Nothing is committed. This is the dry-run primitive for previewing a change.
The diff is credential-redacted like config_backup, and for the same reason: a diff that ADDS 'snmp-server community X' contains X, and one that removes a line quotes the credential the device already had. The result carries a "redaction" block with the count.
Args: config_text: The configuration snippet (merge) or full config (replace). replace: True to diff as a full-config replacement; False (default) to merge. include_secrets: True to return the verbatim diff — use when verifying that the literal key you are pushing is the one that will land. target: Device name from config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| replace | No | ||
| config_text | Yes | ||
| include_secrets | No |