config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NetworkAttachmentDefinitionNameParamName = "networkAttachmentDefinitionName"
	TrafficGenContainerDiskImageParamName    = "trafficGenContainerDiskImage"
	TrafficGenTargetNodeNameParamName        = "trafficGenTargetNodeName"
	TrafficGenPacketsPerSecondParamName      = "trafficGenPacketsPerSecond"
	VMUnderTestContainerDiskImageParamName   = "vmUnderTestContainerDiskImage"
	VMUnderTestTargetNodeNameParamName       = "vmUnderTestTargetNodeName"
	TestDurationParamName                    = "testDuration"
	PortBandwidthGbpsParamName               = "portBandwidthGbps"
	VerboseParamName                         = "verbose"
)
View Source
const (
	TrafficGenDefaultPacketsPerSecond = "8m"
	TestDurationDefault               = 5 * time.Minute
	PortBandwidthGbpsDefault          = 10
	VerboseDefault                    = false

	TrafficGenMACAddressPrefixOctet  = 0x50
	VMUnderTestMACAddressPrefixOctet = 0x60
	EastMACAddressSuffixOctet        = 0x01
	WestMACAddressSuffixOctet        = 0x02
)
View Source
const (
	VMIPassword = "redhat" // #nosec

	VMIEastNICPCIAddress = "0000:06:00.0"
	VMIWestNICPCIAddress = "0000:07:00.0"

	BootScriptName                          = "dpdk-checkup-boot.sh"
	BootScriptBinDirectory                  = "/usr/bin/"
	BootScriptTunedAdmSetMarkerFileFullPath = "/var/dpdk-checkup-tuned-adm-set-marker"
	BootScriptReadinessMarkerFileFullPath   = "/tmp/dpdk-checkup-ready-marker"
)

Variables

View Source
var (
	ErrInvalidNetworkAttachmentDefinitionName = errors.New("invalid Network-Attachment-Definition Name")
	ErrInvalidTrafficGenContainerDiskImage    = errors.New("invalid Traffic Generator container disk image")
	ErrIllegalTargetNodeNamesCombination      = errors.New("illegal Traffic Generator and VM under test target node names combination")
	ErrInvalidTrafficGenPacketsPerSecond      = errors.New("invalid Traffic Generator Packets Per Second")
	ErrInvalidVMUnderTestContainerDiskImage   = errors.New("invalid VM Under test container disk image")
	ErrInvalidTestDuration                    = errors.New("invalid Test Duration")
	ErrInvalidPortBandwidthGbps               = errors.New("invalid Port Bandwidth [Gbps]")
	ErrInvalidVerbose                         = errors.New("invalid Verbose value [true|false]")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	PodName                         string
	PodUID                          string
	NetworkAttachmentDefinitionName string
	TrafficGenContainerDiskImage    string
	TrafficGenTargetNodeName        string
	TrafficGenPacketsPerSecond      string
	TrafficGenEastMacAddress        net.HardwareAddr
	TrafficGenWestMacAddress        net.HardwareAddr
	VMUnderTestContainerDiskImage   string
	VMUnderTestTargetNodeName       string
	VMUnderTestEastMacAddress       net.HardwareAddr
	VMUnderTestWestMacAddress       net.HardwareAddr
	TestDuration                    time.Duration
	PortBandwidthGbps               int
	Verbose                         bool
}

func New

func New(baseConfig kconfig.Config) (Config, error)

Jump to

Keyboard shortcuts

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