Skip to content

Conversation

last-genius
Copy link

Add a local-switch-id command to gateway-cli, package it into the switch zone, use it in the shell prompt instead of curl.

I've tested the gateway-cli binary itself with a mock server, but can't be too sure about the packaging - I've followed 4fa8e74 here

Fixes #8976

This is intended to be used for the switch zone shell prompt, which
currently uses curl to talk to the local MGS. Having gateway-cli do it
instead means that:

1) the program would automatically pick up new changes to the API
2) things would break at build-time if the API were broken
3) ls-apis would see this consumer

Addresses oxidecomputer#8976

Signed-off-by: Andrii Sultanov <[email protected]>
@jgallagher
Copy link
Contributor

Thanks! I'll give this a whirl on a test system to double check the packaging, but it might be a bit of a wait for that.

@jgallagher jgallagher self-requested a review September 5, 2025 14:46
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.

Add a Rust binary to the switch zone to report the local switch ID
2 participants