nictype

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package nictype is a small package to allow resolving NIC "network" key to "nictype" key. It is it's own package to avoid circular dependency issues.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NICType

func NICType(s *state.State, deviceProjectName string, d deviceConfig.Device) (string, error)

NICType resolves the NIC Type for the supplied NIC device config. If the device "type" is "nic" and the "network" property is specified in the device config, then NIC type is resolved from the network's type. Otherwise the device's "nictype" property is returned (which may be empty if used with non-NIC device configs).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL