MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / gateway_port_from_endpoint

Function gateway_port_from_endpoint

crates/openshell-driver-vm/src/driver.rs:4050–4052  ·  view source on GitHub ↗
(endpoint: &str)

Source from the content-addressed store, hash-verified

4048}
4049
4050fn gateway_port_from_endpoint(endpoint: &str) -> Option<u16> {
4051 Url::parse(endpoint).ok().and_then(|url| url.port())
4052}
4053
4054fn has_complete_qemu_network(plan: &LaunchPlan) -> bool {
4055 plan.tap_device.is_some()

Callers 2

build_vm_launch_planMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected