Expand description
Utilities for interacting with devices during integration tests.
Constants§
- TUN_
DEFAULT_ PORT_ ID - Default port ID when creating a tun device pair.
Functions§
- add_
pure_ ip_ interface - Add a pure IP interface to the given device/port, returning the created
fuchsia.net.interfaces.admin/Control
handle. - create_
eth_ tun_ pair - Create a Tun device pair with an Ethernet port.
- create_
eth_ tun_ port - Creates a port on the given Tun device that supports the Ethernet frame type.
- create_
ip_ tun_ port - Creates a port on the given Tun device that supports IPv4 and IPv6 frame types.
- create_
tun_ device - Create a Tun device, returning handles to the created
fuchsia.net.tun/Device
and the underlying network device. - create_
tun_ device_ with - Create a Tun device with the provided config and return its handles.
- create_
tun_ pair_ with - Create a Tun device pair with the provided configurations, returning
handles to the created
fuchsia.net.tun/DevicePair
and both underlying ports. - create_
tun_ port_ with - Create a port on the given Tun device, returning handles to the created
fuchsia.net.tun/Port
and the underlying network port. - install_
device - Install the given network device into the test realm’s networking stack,
returning the created
fuchsia.net.interfaces.admin/DeviceControl
handle.