Skip to content

Add ip-status command - #309

Open
andrewhood-star wants to merge 1 commit into
nsidc:masterfrom
andrewhood-star:feature/ip-status-command
Open

Add ip-status command#309
andrewhood-star wants to merge 1 commit into
nsidc:masterfrom
andrewhood-star:feature/ip-status-command

Conversation

@andrewhood-star

Copy link
Copy Markdown

Adds a new 'vagrant ip-status' command that displays base status output with each VM’s reported IP address when available.

This command reuses the provider’s existing 'ssh_info' / 'get_ssh_info' path, so IP lookup behavior remains consistent with the current vSphere guest IP detection logic.

This was intentionally implemented as a separate command rather than modifying Vagrant core’s existing 'status' command. The IP lookup behavior is provider-specific to vSphere, and keeping it separate preserves existing core Vagrant behavior.

Behavior:

  • Lists machines in the current Vagrant environment
  • Shows each machine name and Vagrant state
  • Shows the vSphere-reported guest IP when available
  • Displays '-' when an IP address is unavailable, the VM is not created, or the provider is not vSphere

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.

1 participant