Skip to content

Commit

Permalink
Merge pull request kubevirt#7424 from maiqueb/provide-descriptions-fo…
Browse files Browse the repository at this point in the history
…r-iface-binding-types

api, network: provide interface binding types descriptions
  • Loading branch information
kubevirt-bot authored Mar 25, 2022
2 parents aa8bcc7 + 352b4e5 commit 1ad674a
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 10 deletions.
5 changes: 5 additions & 0 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -13658,18 +13658,23 @@
}
},
"v1.InterfaceBridge": {
"description": "InterfaceBridge connects to a given network via a linux bridge.",
"type": "object"
},
"v1.InterfaceMacvtap": {
"description": "InterfaceMacvtap connects to a given network by extending the Kubernetes node's L2 networks via a macvtap interface.",
"type": "object"
},
"v1.InterfaceMasquerade": {
"description": "InterfaceMasquerade connects to a given network using netfilter rules to nat the traffic.",
"type": "object"
},
"v1.InterfaceSRIOV": {
"description": "InterfaceSRIOV connects to a given network by passing-through an SR-IOV PCI device via vfio.",
"type": "object"
},
"v1.InterfaceSlirp": {
"description": "InterfaceSlirp connects to a given network using QEMU user networking mode.",
"type": "object"
},
"v1.KVMTimer": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5138,6 +5138,8 @@ var CRDsValidation map[string]string = map[string]string{
without a boot order are not tried.
type: integer
bridge:
description: InterfaceBridge connects to a given network
via a linux bridge.
type: object
dhcpOptions:
description: If specified the network interface will
Expand Down Expand Up @@ -5183,8 +5185,13 @@ var CRDsValidation map[string]string = map[string]string{
de:ad:00:00:be:af or DE-AD-00-00-BE-AF.'
type: string
macvtap:
description: InterfaceMacvtap connects to a given
network by extending the Kubernetes node's L2 networks
via a macvtap interface.
type: object
masquerade:
description: InterfaceMasquerade connects to a given
network using netfilter rules to nat the traffic.
type: object
model:
description: 'Interface model. One of: e1000, e1000e,
Expand Down Expand Up @@ -5231,8 +5238,12 @@ var CRDsValidation map[string]string = map[string]string{
type: object
type: array
slirp:
description: InterfaceSlirp connects to a given network
using QEMU user networking mode.
type: object
sriov:
description: InterfaceSRIOV connects to a given network
by passing-through an SR-IOV PCI device via vfio.
type: object
tag:
description: If specified, the virtual network interface
Expand Down Expand Up @@ -8369,6 +8380,8 @@ var CRDsValidation map[string]string = map[string]string{
unique value. Interfaces without a boot order are not tried.
type: integer
bridge:
description: InterfaceBridge connects to a given network via
a linux bridge.
type: object
dhcpOptions:
description: If specified the network interface will pass
Expand Down Expand Up @@ -8414,8 +8427,13 @@ var CRDsValidation map[string]string = map[string]string{
or DE-AD-00-00-BE-AF.'
type: string
macvtap:
description: InterfaceMacvtap connects to a given network
by extending the Kubernetes node's L2 networks via a macvtap
interface.
type: object
masquerade:
description: InterfaceMasquerade connects to a given network
using netfilter rules to nat the traffic.
type: object
model:
description: 'Interface model. One of: e1000, e1000e, ne2k_pci,
Expand Down Expand Up @@ -8459,8 +8477,12 @@ var CRDsValidation map[string]string = map[string]string{
type: object
type: array
slirp:
description: InterfaceSlirp connects to a given network using
QEMU user networking mode.
type: object
sriov:
description: InterfaceSRIOV connects to a given network by
passing-through an SR-IOV PCI device via vfio.
type: object
tag:
description: If specified, the virtual network interface address
Expand Down Expand Up @@ -10479,6 +10501,8 @@ var CRDsValidation map[string]string = map[string]string{
unique value. Interfaces without a boot order are not tried.
type: integer
bridge:
description: InterfaceBridge connects to a given network via
a linux bridge.
type: object
dhcpOptions:
description: If specified the network interface will pass
Expand Down Expand Up @@ -10524,8 +10548,13 @@ var CRDsValidation map[string]string = map[string]string{
or DE-AD-00-00-BE-AF.'
type: string
macvtap:
description: InterfaceMacvtap connects to a given network
by extending the Kubernetes node's L2 networks via a macvtap
interface.
type: object
masquerade:
description: InterfaceMasquerade connects to a given network
using netfilter rules to nat the traffic.
type: object
model:
description: 'Interface model. One of: e1000, e1000e, ne2k_pci,
Expand Down Expand Up @@ -10569,8 +10598,12 @@ var CRDsValidation map[string]string = map[string]string{
type: object
type: array
slirp:
description: InterfaceSlirp connects to a given network using
QEMU user networking mode.
type: object
sriov:
description: InterfaceSRIOV connects to a given network by
passing-through an SR-IOV PCI device via vfio.
type: object
tag:
description: If specified, the virtual network interface address
Expand Down Expand Up @@ -12546,6 +12579,8 @@ var CRDsValidation map[string]string = map[string]string{
without a boot order are not tried.
type: integer
bridge:
description: InterfaceBridge connects to a given network
via a linux bridge.
type: object
dhcpOptions:
description: If specified the network interface will
Expand Down Expand Up @@ -12591,8 +12626,13 @@ var CRDsValidation map[string]string = map[string]string{
de:ad:00:00:be:af or DE-AD-00-00-BE-AF.'
type: string
macvtap:
description: InterfaceMacvtap connects to a given
network by extending the Kubernetes node's L2 networks
via a macvtap interface.
type: object
masquerade:
description: InterfaceMasquerade connects to a given
network using netfilter rules to nat the traffic.
type: object
model:
description: 'Interface model. One of: e1000, e1000e,
Expand Down Expand Up @@ -12639,8 +12679,12 @@ var CRDsValidation map[string]string = map[string]string{
type: object
type: array
slirp:
description: InterfaceSlirp connects to a given network
using QEMU user networking mode.
type: object
sriov:
description: InterfaceSRIOV connects to a given network
by passing-through an SR-IOV PCI device via vfio.
type: object
tag:
description: If specified, the virtual network interface
Expand Down Expand Up @@ -16151,6 +16195,8 @@ var CRDsValidation map[string]string = map[string]string{
a boot order are not tried.
type: integer
bridge:
description: InterfaceBridge connects to a
given network via a linux bridge.
type: object
dhcpOptions:
description: If specified the network interface
Expand Down Expand Up @@ -16199,8 +16245,14 @@ var CRDsValidation map[string]string = map[string]string{
de:ad:00:00:be:af or DE-AD-00-00-BE-AF.'
type: string
macvtap:
description: InterfaceMacvtap connects to
a given network by extending the Kubernetes
node's L2 networks via a macvtap interface.
type: object
masquerade:
description: InterfaceMasquerade connects
to a given network using netfilter rules
to nat the traffic.
type: object
model:
description: 'Interface model. One of: e1000,
Expand Down Expand Up @@ -16251,8 +16303,14 @@ var CRDsValidation map[string]string = map[string]string{
type: object
type: array
slirp:
description: InterfaceSlirp connects to a
given network using QEMU user networking
mode.
type: object
sriov:
description: InterfaceSRIOV connects to a
given network by passing-through an SR-IOV
PCI device via vfio.
type: object
tag:
description: If specified, the virtual network
Expand Down Expand Up @@ -20130,6 +20188,8 @@ var CRDsValidation map[string]string = map[string]string{
without a boot order are not tried.
type: integer
bridge:
description: InterfaceBridge connects
to a given network via a linux bridge.
type: object
dhcpOptions:
description: If specified the network
Expand Down Expand Up @@ -20179,8 +20239,15 @@ var CRDsValidation map[string]string = map[string]string{
example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF.'
type: string
macvtap:
description: InterfaceMacvtap connects
to a given network by extending the
Kubernetes node's L2 networks via a
macvtap interface.
type: object
masquerade:
description: InterfaceMasquerade connects
to a given network using netfilter rules
to nat the traffic.
type: object
model:
description: 'Interface model. One of:
Expand Down Expand Up @@ -20234,8 +20301,14 @@ var CRDsValidation map[string]string = map[string]string{
type: object
type: array
slirp:
description: InterfaceSlirp connects to
a given network using QEMU user networking
mode.
type: object
sriov:
description: InterfaceSRIOV connects to
a given network by passing-through an
SR-IOV PCI device via vfio.
type: object
tag:
description: If specified, the virtual
Expand Down
5 changes: 5 additions & 0 deletions staging/src/kubevirt.io/api/core/v1/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -1185,14 +1185,19 @@ type InterfaceBindingMethod struct {
Macvtap *InterfaceMacvtap `json:"macvtap,omitempty"`
}

// InterfaceBridge connects to a given network via a linux bridge.
type InterfaceBridge struct{}

// InterfaceSlirp connects to a given network using QEMU user networking mode.
type InterfaceSlirp struct{}

// InterfaceMasquerade connects to a given network using netfilter rules to nat the traffic.
type InterfaceMasquerade struct{}

// InterfaceSRIOV connects to a given network by passing-through an SR-IOV PCI device via vfio.
type InterfaceSRIOV struct{}

// InterfaceMacvtap connects to a given network by extending the Kubernetes node's L2 networks via a macvtap interface.
type InterfaceMacvtap struct{}

// Port represents a port to expose from the virtual machine.
Expand Down
20 changes: 15 additions & 5 deletions staging/src/kubevirt.io/api/core/v1/schema_swagger_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions staging/src/kubevirt.io/client-go/api/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1ad674a

Please sign in to comment.