Skip to content

Add 'step_config' netmiko feature - #3932

Merged
ipspace merged 1 commit into
devfrom
netmiko-step-config
Oct 7, 2026
Merged

ipspace merged 1 commit into
devfrom
netmiko-step-config

Conversation

@ipspace

@ipspace ipspace commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Netmiko does not exit the config mode after send_config_from_file on some devices (IOS XR). An explicit 'exit from config mode' is needed on those devices.

Also: add 'commit' and 'exit_config_mode' results to debugging printout

Netmiko does not exit the config mode after send_config_from_file on
some devices (IOS XR). An explicit 'exit from config mode' is needed
on those devices.

Also: add 'commit' and 'exit_config_mode' results to debugging printout

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Stock IOS XR definitions do not enable the new flag, so the reported issue remains unresolved.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds optional Netmiko config-mode exit handling and includes commit/exit responses in debug output.

Changes:

  • Adds the netmiko.step_config feature gate.
  • Appends commit and exit-config responses to results.
File Description
netsim/​cli/​initial/​netmiko.py Implements gated config-mode exit and expanded debugging output.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread netsim/cli/initial/netmiko.py
@ipspace
ipspace merged commit 1673c86 into dev Oct 7, 2026
9 checks passed
@ipspace
ipspace deleted the netmiko-step-config branch October 7, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants