Skip to content

Latest commit

 

History

History
54 lines (48 loc) · 3.81 KB

File metadata and controls

54 lines (48 loc) · 3.81 KB

Kubevirt::V1Interface

Properties

Name Type Description Notes
acpi_index Integer If specified, the ACPI index is used to provide network interface device naming, that is stable across changes in PCI addresses assigned to the device. This value is required to be unique across all devices and be between 1 and (16*1024-1). [optional]
binding V1PluginBinding [optional]
boot_order Integer BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each interface or disk that has a boot order must have a unique value. Interfaces without a boot order are not tried. [optional]
bridge Object InterfaceBridge connects to a given network via a linux bridge. [optional]
dhcp_options V1DHCPOptions [optional]
mac_address String Interface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF. [optional]
macvtap Object DeprecatedInterfaceMacvtap is an alias to the deprecated InterfaceMacvtap that connects to a given network by extending the Kubernetes node's L2 networks via a macvtap interface. Deprecated: Removed in v1.3 [optional]
masquerade Object InterfaceMasquerade connects to a given network using netfilter rules to nat the traffic. [optional]
model String Interface model. One of: e1000, e1000e, igb, ne2k_pci, pcnet, rtl8139, virtio. Defaults to virtio. [optional]
name String Logical name of the interface as well as a reference to the associated networks. Must match the Name of a Network. [default to '']
passt Object DeprecatedInterfacePasst is an alias to the deprecated InterfacePasst Deprecated: Removed in v1.3 [optional]
passt_binding Object InterfacePasstBinding connects to a given network using passt usermode networking. [optional]
pci_address String If specified, the virtual network interface will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10 [optional]
port_ranges Array<V1PortRange> List of port ranges to be forwarded to the virtual machine. Mutually exclusive with ports. Only supported on masquerade interfaces. This feature is in Alpha. [optional]
ports Array<V1Port> List of ports to be forwarded to the virtual machine. Mutually exclusive with portRanges. [optional]
slirp Object DeprecatedInterfaceSlirp is an alias to the deprecated InterfaceSlirp that connects to a given network using QEMU user networking mode. Deprecated: Removed in v1.3 [optional]
sriov Object InterfaceSRIOV connects to a given network by passing-through an SR-IOV PCI device via vfio. [optional]
state String State represents the requested operational state of the interface. The supported values are: `absent`, expressing a request to remove the interface. `down`, expressing a request to set the link down. `up`, expressing a request to set the link up. Empty value functions as `up`. [optional]
tag String If specified, the virtual network interface address and its tag will be provided to the guest via config drive [optional]

Example

require 'kubevirt'

instance = Kubevirt::V1Interface.new(
  acpi_index: null,
  binding: null,
  boot_order: null,
  bridge: null,
  dhcp_options: null,
  mac_address: null,
  macvtap: null,
  masquerade: null,
  model: null,
  name: null,
  passt: null,
  passt_binding: null,
  pci_address: null,
  port_ranges: null,
  ports: null,
  slirp: null,
  sriov: null,
  state: null,
  tag: null
)