Documentation ¶
Index ¶
- Variables
- func CleanSriov(sriovclient *sriovtestclient.ClientSet)
- func CreateDpdkPolicy(sriovDevice *sriovv1.InterfaceExt, ...)
- func CreatePoliciesDPDKOnly(sriovDevice *sriovv1.InterfaceExt, testNode string, dpdkResourceName string, ...)
- func CreateSriovNetwork(sriovclient *sriovtestclient.ClientSet, sriovDevice *sriovv1.InterfaceExt, ...)
- func CreateSriovNetworkWithVlan(sriovclient *sriovtestclient.ClientSet, sriovDevice *sriovv1.InterfaceExt, ...)
- func CreateSriovPolicyAndNetwork(sriovclient *sriovtestclient.ClientSet, ...)
- func CreateSriovPolicyAndNetworkDPDKOnly(dpdkResourceName, workerCnfLabelSelector string)
- func CreateSriovPolicyAndNetworkDPDKOnlyWithVhost(dpdkResourceName, workerCnfLabelSelector string)
- func GetSupportedSriovNics() (map[string]string, error)
- func IsIntelDisabledNic(iface sriovv1.InterfaceExt) bool
- func IsSriovOperatorInstalled() bool
- func SysctlConfig(sysctls map[string]string) (string, error)
- func WaitStable(sriovclient *sriovtestclient.ClientSet)
- type NetworkAttachmentDefinitionBuilder
- func (b *NetworkAttachmentDefinitionBuilder) Build() (*netattdefv1.NetworkAttachmentDefinition, error)
- func (b *NetworkAttachmentDefinitionBuilder) WithBond(bondName, link1, link2 string, mtu int) *NetworkAttachmentDefinitionBuilder
- func (b *NetworkAttachmentDefinitionBuilder) WithHostLocalIpam(ip string) *NetworkAttachmentDefinitionBuilder
- func (b *NetworkAttachmentDefinitionBuilder) WithMacVlan() *NetworkAttachmentDefinitionBuilder
- func (b *NetworkAttachmentDefinitionBuilder) WithStaticIpam(ip string) *NetworkAttachmentDefinitionBuilder
- func (b *NetworkAttachmentDefinitionBuilder) WithTap() *NetworkAttachmentDefinitionBuilder
- func (b *NetworkAttachmentDefinitionBuilder) WithTuning(sysctls string) *NetworkAttachmentDefinitionBuilder
- func (b *NetworkAttachmentDefinitionBuilder) WithVlan(master string, vlanID int, linkInContainer bool) *NetworkAttachmentDefinitionBuilder
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 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 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 (b *NetworkAttachmentDefinitionBuilder) Build() (*netattdefv1.NetworkAttachmentDefinition, error)
func (*NetworkAttachmentDefinitionBuilder) WithBond ¶
func (b *NetworkAttachmentDefinitionBuilder) WithBond(bondName, link1, link2 string, mtu int) *NetworkAttachmentDefinitionBuilder
func (*NetworkAttachmentDefinitionBuilder) WithHostLocalIpam ¶
func (b *NetworkAttachmentDefinitionBuilder) WithHostLocalIpam(ip string) *NetworkAttachmentDefinitionBuilder
func (*NetworkAttachmentDefinitionBuilder) WithMacVlan ¶
func (b *NetworkAttachmentDefinitionBuilder) WithMacVlan() *NetworkAttachmentDefinitionBuilder
func (*NetworkAttachmentDefinitionBuilder) WithStaticIpam ¶
func (b *NetworkAttachmentDefinitionBuilder) WithStaticIpam(ip string) *NetworkAttachmentDefinitionBuilder
func (*NetworkAttachmentDefinitionBuilder) WithTap ¶
func (b *NetworkAttachmentDefinitionBuilder) WithTap() *NetworkAttachmentDefinitionBuilder
func (*NetworkAttachmentDefinitionBuilder) WithTuning ¶
func (b *NetworkAttachmentDefinitionBuilder) WithTuning(sysctls string) *NetworkAttachmentDefinitionBuilder
func (*NetworkAttachmentDefinitionBuilder) WithVlan ¶
func (b *NetworkAttachmentDefinitionBuilder) WithVlan(master string, vlanID int, linkInContainer bool) *NetworkAttachmentDefinitionBuilder
Click to show internal directories.
Click to hide internal directories.