Skip to content

Bug Fix NXOS#387

Open
mattmiller87 wants to merge 3 commits into
developfrom
u/mattmiller/nxos_bugfix
Open

Bug Fix NXOS#387
mattmiller87 wants to merge 3 commits into
developfrom
u/mattmiller/nxos_bugfix

Conversation

@mattmiller87
Copy link
Copy Markdown
Contributor

@mattmiller87 mattmiller87 commented May 14, 2026

New Pull Request

I am solving three bugs when running nxos_device.py:

  1. A return changed to be a string, not a tuple.
  2. using native instead of native_ssh
  3. fixed a vrf prompt option

Change Notes

Fixed _build_url_copy_command_simple to return a string.
Fixed _get_file_system and _get_free_space to use native_ssh; initial intent when created.
Fixed the remote_file_copy prompts to detect needing to enter a vrf if one isn't provided.

Justification

The copy command return from _build_url_copy_command_simple should not be a tuple.
remote_file_copy method is using native_ssh and _get_file_systemand_get_free_spaceshould be using it too.remote_file_copy` may return a prompt we were not catching previously.

Note: unittest changes were written with AI

@mattmiller87 mattmiller87 force-pushed the u/mattmiller/nxos_bugfix branch 2 times, most recently from 4864906 to 428cfa6 Compare May 14, 2026 14:57
@mattmiller87 mattmiller87 force-pushed the u/mattmiller/nxos_bugfix branch from 428cfa6 to b4a3f78 Compare May 14, 2026 15:34
@mattmiller87 mattmiller87 marked this pull request as draft May 14, 2026 16:24
@mattmiller87 mattmiller87 force-pushed the u/mattmiller/nxos_bugfix branch from cacc60c to 9b5c676 Compare May 14, 2026 19:42
@mattmiller87 mattmiller87 marked this pull request as ready for review May 14, 2026 19:42
@jtdub jtdub self-requested a review May 15, 2026 13:51
@mattmiller87 mattmiller87 marked this pull request as draft May 15, 2026 14:20
@mattmiller87 mattmiller87 marked this pull request as ready for review May 15, 2026 15:08
@mattmiller87 mattmiller87 changed the title Fix operations to use native_ssh instead of nx-api Bug Fix NXOS May 15, 2026
@mattmiller87 mattmiller87 force-pushed the u/mattmiller/nxos_bugfix branch from 498d9d1 to aa6a1cc Compare May 15, 2026 15:19
@mattmiller87 mattmiller87 force-pushed the u/mattmiller/nxos_bugfix branch from aa6a1cc to 87fbf1e Compare May 15, 2026 15:41
Copy link
Copy Markdown
Contributor

@jtdub jtdub left a comment

Choose a reason for hiding this comment

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

LGTM

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