Google is committed to advancing racial equity for Black communities. See how.

fuchsia.net.virtualization

PROTOCOLS

Control

Defined in fuchsia.net.virtualization/control.fidl

Provides control over virtualization network configuration.

CreateNetwork

Create a new network with configurable upstream connectivity.

The network itself is always guaranteed to be created, but upstream connectivity may not be established initially and may be lost at any time.

  • request config network configuration.
  • request network provides control over the created network.

Request

NameType
config Config
network request<Network>

Interface

Defined in fuchsia.net.virtualization/control.fidl

Provides control over an interface.

This protocol encodes the lifetime of the underlying interface in both directions, that is:

  • if the client end is closed, the server will detach the interface from the network it belongs to and detach the network device;
  • if the server end is closed, the interface has been detached from the network it was attached to and destroyed.

Network

Defined in fuchsia.net.virtualization/control.fidl

Provides control over a network.

This protocol encodes the lifetime of the underlying network in both directions, that is:

  • if the client end is closed: all interfaces added to the network (not including any used to provide upstream connectivity) will be removed and destroyed, and the network will be removed;
  • if the server end is closed, all interfaces on the network and the network itself have been destroyed.

AddDevice

Add a device to the network.

  • request port_id the netdevice port ID.
  • request device the network device to be added.
  • request interface provides control over the device. The protocol will be terminated with the epitaph ZX_ERR_WRONG_TYPE if the device could not be added to the network due to incompatibility, e.g. if the network is bridged and the device does not support the same L2 protocol as other devices on the bridge.

Request

NameType
port_id fuchsia.hardware.network/port_id
device fuchsia.hardware.network/Device
interface request<Interface>

STRUCTS

TABLES

Bridged

Defined in fuchsia.net.virtualization/control.fidl

OrdinalFieldTypeDescription

UNIONS

Config flexible

Defined in fuchsia.net.virtualization/control.fidl

Ordinal
VariantTypeDescription
1 bridged Bridged

Create a bridged network.

The server will attempt to find a suitable interface to attach to the bridge for providing upstream connectivity. The selection process will be repeated to find a replacement iff the interface attached to the bridge with Internet connectivity is removed.