
Cisco IOS-XE ApplyConfig
CertifiedEnterprise EditionReplace the running configuration of a Cisco IOS-XE device
Cisco IOS-XE ApplyConfig
Replace the running configuration of a Cisco IOS-XE device
Uploads the configuration to bootflash over SCP (ip scp server enable on the device), shows the difference
with the running configuration, then runs
configure replace bootflash: <file> force revert trigger error timer <minutes> and, once the device still
accepts a new login, configure confirm. If the new configuration locks the plugin out, nothing confirms it
and the device reverts by itself when the timer expires.
With dryRun: true only the difference is returned. The device needs the archive feature (archive and
path bootflash: ) for the revert timer; the task checks for it. The configuration must be a complete
configuration, not a fragment. A configuration that still contains <masked>, as written by GetConfig, is
rejected: restore the real secrets first. A replace can need several passes, and the vendor warns that a revert may not
restore part of the configuration after a multi-pass replace: keep a backup made with GetConfig.
type: io.kestra.plugin.ee.cisco.iosxe.ApplyConfigExamples
Preview, then apply a configuration with a 10 minute revert timer
id: cisco_iosxe_apply_config
namespace: company.network
inputs:
- id: desired_config
type: FILE
tasks:
- id: preview
type: io.kestra.plugin.ee.cisco.iosxe.ApplyConfig
host: core1.example.net
username: automation
password: "{{ secret('CISCO_PASSWORD') }}"
enableSecret: "{{ secret('CISCO_ENABLE_SECRET') }}"
hostKeyFingerprint: "{{ secret('CORE1_HOST_KEY_FINGERPRINT') }}"
config: "{{ inputs.desired_config }}"
dryRun: true
- id: apply
type: io.kestra.plugin.ee.cisco.iosxe.ApplyConfig
host: core1.example.net
username: automation
password: "{{ secret('CISCO_PASSWORD') }}"
enableSecret: "{{ secret('CISCO_ENABLE_SECRET') }}"
hostKeyFingerprint: "{{ secret('CORE1_HOST_KEY_FINGERPRINT') }}"
config: "{{ inputs.desired_config }}"
revertTimer: PT10M
Installation
This Enterprise plugin requires an Enterprise image and access to the plugin registry. Install it with the following command:
kestractl plugins get io.kestra.plugin.ee:plugin-ee-cisco --compatible-for $KESTRA_VERSION For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.
For Kestra CLI, replace LATEST with a specific version or version range to pin the plugin version.
Properties
config *string
Complete configuration to apply, from internal storage
Pebble expression referencing an Internal Storage URI e.g. {{ outputs.mytask.uri }}.
host *string
Device host name or IP address
username *string
Username
The account must have privilege 15, or an enableSecret to reach it.
applyTimeout string
PT10MTimeout of the replace command
1 second to 2 hours, default 10 minutes.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150commandTimeout string
PT2MDefault timeout of a single command
1 second to 1 hour, default 2 minutes. Tasks that run long operations (copy, install) have their own timeout properties.
connectTimeout string
PT30STCP and SSH connect timeout
1 second to 5 minutes, default 30 seconds.
disableHostKeyVerification booleanstring
falseDisable SSH host key verification
Explicit opt-out: the device identity is no longer verified, which exposes the credentials to a man-in-the-middle. Use for labs only.
dryRun booleanstring
falseOnly return the difference
Nothing is replaced.
enableSecret string
Enable secret
Used to enter privileged EXEC mode when the login lands in user EXEC mode (host> prompt).
hostKeyFingerprint string
SHA256 fingerprint of the device SSH host key
Format SHA256: abc..., as printed by ssh-keygen -lf. Host key verification is on by default, so this
property is required unless disableHostKeyVerification is true. Cisco IOS-XE offers RSA host keys.
password string
Password
Required unless privateKey is set.
port integerstring
22SSH port
1 to 65535, default 22.
privateKey string
SSH private key
PEM content of the private key.
Used instead of password when set.
privateKeyPassphrase string
Passphrase of the private key
revertTimer string
PT15MRevert timer
The device reverts to the previous configuration if it is not confirmed in this delay. 1 to 120 minutes, default 15.
Outputs
applied boolean
falsetrue when configure replace ran and the new configuration was confirmed
A failure at any step throws instead.
diff string
uriDifferences applied, or that would be applied with dryRun. Secrets are masked
identical boolean
falsetrue when the device already had this configuration
passes integer
0Number of passes the replace needed