networks

package
v0.0.0-...-9c5689a Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MlxVendorID   = "15b3"
	IntelVendorID = "8086"
)

Functions

func CleanSriov

func CleanSriov(sriovclient *sriovtestclient.ClientSet)

CleanSriov cleans SriovNetworks and SriovNetworkNodePolicies with the prefix of `test-`, that are in the `openshift-sriov-network-operator`

func CreateDpdkPolicy

func CreateDpdkPolicy(sriovDevice *sriovv1.InterfaceExt, testNode, dpdkResourceName, pfPartition string, vfsNum int, needVhostNet bool)

func CreatePoliciesDPDKOnly

func CreatePoliciesDPDKOnly(sriovDevice *sriovv1.InterfaceExt, testNode string, dpdkResourceName string, needVhostNet bool)

func CreateSriovNetwork

func CreateSriovNetwork(sriovclient *sriovtestclient.ClientSet, sriovDevice *sriovv1.InterfaceExt, sriovNetworkName, sriovNetworkNamespace, operatorNamespace, resourceName, metaPluginsConfig string)

func CreateSriovNetworkWithVlan

func CreateSriovNetworkWithVlan(sriovclient *sriovtestclient.ClientSet, sriovDevice *sriovv1.InterfaceExt, sriovNetworkName, sriovNetworkNamespace, operatorNamespace, resourceName, metaPluginsConfig string, vlan int)

func CreateSriovPolicyAndNetwork

func CreateSriovPolicyAndNetwork(sriovclient *sriovtestclient.ClientSet, namespace, networkName, resourceName, metaPluginsConfig string)

func CreateSriovPolicyAndNetworkDPDKOnly

func CreateSriovPolicyAndNetworkDPDKOnly(dpdkResourceName, workerCnfLabelSelector string)

func CreateSriovPolicyAndNetworkDPDKOnlyWithVhost

func CreateSriovPolicyAndNetworkDPDKOnlyWithVhost(dpdkResourceName, workerCnfLabelSelector string)

func GetSupportedSriovNics

func GetSupportedSriovNics() (map[string]string, error)

func IsIntelDisabledNic

func IsIntelDisabledNic(iface sriovv1.InterfaceExt) bool

if the sriov is not able in the kernel for intel nic the totalVF will be 0 so we skip the device That is not the case for Mellanox devices that will report 0 until we configure the sriov interfaces with the mstconfig package

func IsSriovOperatorInstalled

func IsSriovOperatorInstalled() bool

IsSriovOperatorInstalled returns true if SriovOperator related Custom Resources are available in the cluster, false otherwise.

func SysctlConfig

func SysctlConfig(sysctls map[string]string) (string, error)

func WaitStable

func WaitStable(sriovclient *sriovtestclient.ClientSet)

WaitStable waits for the sriov setup to be stable after configuration modification.

Types

type NetworkAttachmentDefinitionBuilder

type NetworkAttachmentDefinitionBuilder struct {
	// contains filtered or unexported fields
}

func NewNetworkAttachmentDefinitionBuilder

func NewNetworkAttachmentDefinitionBuilder(namespace, nadName string) *NetworkAttachmentDefinitionBuilder

func (*NetworkAttachmentDefinitionBuilder) Build

func (*NetworkAttachmentDefinitionBuilder) WithBond

func (b *NetworkAttachmentDefinitionBuilder) WithBond(bondName, link1, link2 string, mtu int) *NetworkAttachmentDefinitionBuilder

func (*NetworkAttachmentDefinitionBuilder) WithHostLocalIpam

func (*NetworkAttachmentDefinitionBuilder) WithMacVlan

func (*NetworkAttachmentDefinitionBuilder) WithStaticIpam

func (*NetworkAttachmentDefinitionBuilder) WithTap

func (*NetworkAttachmentDefinitionBuilder) WithTuning

func (*NetworkAttachmentDefinitionBuilder) WithVlan

func (b *NetworkAttachmentDefinitionBuilder) WithVlan(master string, vlanID int, linkInContainer bool) *NetworkAttachmentDefinitionBuilder

Jump to

Keyboard shortcuts

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