Documentation ¶
Index ¶
- func ConfigureSecureBoot(bmcClient *bmc.BMC, action string) error
- func ConfigureSriovMlnxFirmwareOnWorkers(workerNodes []*nodes.Builder, sriovInterfaceName string, enableSriov bool, ...) error
- func ConfigureSriovMlnxFirmwareOnWorkersAndWaitMCP(workerNodes []*nodes.Builder, sriovInterfaceName string, enableSriov bool, ...) error
- func CreateAndWaitTestPodWithSecondaryNetwork(podName string, testNodeName string, sriovResNameTest string, testMac string, ...) (*pod.Builder, error)
- func CreateBMCClient() (*bmc.BMC, error)
- func CreatePodsAndRunTraffic(clientNodeName string, serverNodeName string, sriovResNameClient string, ...) error
- func CreateSriovPolicyAndWaitUntilItsApplied(sriovPolicy *sriov.PolicyBuilder, timeout time.Duration) error
- func IsMellanoxDevice(intName, nodeName string) bool
- func IsSriovDeployed() error
- func RemoveAllSriovNetworks() error
- func RemoveSriovConfigurationAndWaitForSriovAndMCPStable() error
- func ValidateSriovInterfaces(workerNodeList []*nodes.Builder, requestedNumber int) error
- func WaitUntilVfsCreated(nodeList []*nodes.Builder, sriovInterfaceName string, numberOfVfs int, ...) error
- type SwitchCredentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureSecureBoot ¶
ConfigureSecureBoot enables or disables a SecureBoot on a BMC machine.
func ConfigureSriovMlnxFirmwareOnWorkers ¶
func ConfigureSriovMlnxFirmwareOnWorkers( workerNodes []*nodes.Builder, sriovInterfaceName string, enableSriov bool, numVfs int) error
ConfigureSriovMlnxFirmwareOnWorkers configures SR-IOV firmware on a given Mellanox device.
func ConfigureSriovMlnxFirmwareOnWorkersAndWaitMCP ¶
func ConfigureSriovMlnxFirmwareOnWorkersAndWaitMCP( workerNodes []*nodes.Builder, sriovInterfaceName string, enableSriov bool, numVfs int) error
ConfigureSriovMlnxFirmwareOnWorkersAndWaitMCP configures Mellanox firmware and wait for the cluster becomes stable.
func CreateAndWaitTestPodWithSecondaryNetwork ¶
func CreateAndWaitTestPodWithSecondaryNetwork( podName string, testNodeName string, sriovResNameTest string, testMac string, testIPs []string) (*pod.Builder, error)
CreateAndWaitTestPodWithSecondaryNetwork creates test pod with secondary network and waits until it is in the ready state.
func CreateBMCClient ¶
CreateBMCClient creates BMC client instance.
func CreatePodsAndRunTraffic ¶
func CreatePodsAndRunTraffic( clientNodeName string, serverNodeName string, sriovResNameClient string, sriovResNameServer string, clientMac string, serverMac string, clientIPs []string, serverIPs []string) error
CreatePodsAndRunTraffic creates test pods and verifies connectivity between them.
func CreateSriovPolicyAndWaitUntilItsApplied ¶
func CreateSriovPolicyAndWaitUntilItsApplied(sriovPolicy *sriov.PolicyBuilder, timeout time.Duration) error
CreateSriovPolicyAndWaitUntilItsApplied creates SriovNetworkNodePolicy and waits until it's successfully applied.
func IsMellanoxDevice ¶
IsMellanoxDevice checks if a given network interface on a node is a Mellanox device.
func IsSriovDeployed ¶
func IsSriovDeployed() error
IsSriovDeployed checks SR-IOV deployment in the cluster. Returns nil if SR-IOV is deployed & daemonsets are ready, else returns an error.
func RemoveAllSriovNetworks ¶
func RemoveAllSriovNetworks() error
RemoveAllSriovNetworks removes all SR-IOV networks.
func RemoveSriovConfigurationAndWaitForSriovAndMCPStable ¶
func RemoveSriovConfigurationAndWaitForSriovAndMCPStable() error
RemoveSriovConfigurationAndWaitForSriovAndMCPStable removes all SR-IOV networks and policies in SR-IOV operator namespace.
func ValidateSriovInterfaces ¶
ValidateSriovInterfaces checks that provided interfaces by env var exist on the nodes.
Types ¶
type SwitchCredentials ¶
SwitchCredentials creates the struct to ssh to the lab switch.
func NewSwitchCredentials ¶
func NewSwitchCredentials() (*SwitchCredentials, error)
NewSwitchCredentials is the constructor for the SwitchCredentials object.