types

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const FirmwareSourceNotReadyErrorPrefix = "requested firmware source not ready"
View Source
const IncorrectSpecErrorPrefix = "incorrect spec"
View Source
const ValuesDoNotMatchErrorPrefix = "values do not match"

Variables

This section is empty.

Functions

func FirmwareSourceNotReadyError added in v0.1.18

func FirmwareSourceNotReadyError(firmwareSourceName, msg string) error

func IncorrectSpecError

func IncorrectSpecError(msg string) error

func IsFirmwareSourceNotReadyError added in v0.1.18

func IsFirmwareSourceNotReadyError(err error) bool

func IsIncorrectSpecError

func IsIncorrectSpecError(err error) bool

func IsValuesDoNotMatchError added in v1.2.0

func IsValuesDoNotMatchError(err error) bool

func ValuesDoNotMatchError added in v1.2.0

func ValuesDoNotMatchError(param ConfigurationParameter, value string) error

Types

type ConfigurationParameter added in v1.2.0

type ConfigurationParameter struct {
	Name             string `yaml:"name"`
	Value            string `yaml:"value"`
	ValueType        string `yaml:"valueType"`
	DMSPath          string `yaml:"dmsPath"`
	AlternativeValue string `yaml:"alternativeValue,omitempty"`
}

type InterPacketGapConfig added in v1.2.0

type InterPacketGapConfig struct {
	PureL3 ConfigurationParameter `yaml:"pureL3"`
	L3EVPN ConfigurationParameter `yaml:"l3EVPN"`
}

type NvConfigQuery

type NvConfigQuery struct {
	DefaultConfig  map[string][]string
	CurrentConfig  map[string][]string
	NextBootConfig map[string][]string
}

NvConfigQuery contains a nv config query for a single device, values can contain both the string alias and the numeric value

func NewNvConfigQuery

func NewNvConfigQuery() NvConfigQuery

type SpectrumXConfig added in v1.2.0

type SpectrumXConfig struct {
	NVConfig               []ConfigurationParameter `yaml:"nvConfig"`
	RuntimeConfig          SpectrumXRuntimeConfig   `yaml:"runtimeConfig"`
	UseSoftwareCCAlgorithm bool                     `yaml:"useSoftwareCCAlgorithm"`
	DocaCCVersion          string                   `yaml:"docaCCVersion"`
}

func LoadSpectrumXConfig added in v1.2.0

func LoadSpectrumXConfig(configPath string) (*SpectrumXConfig, error)

type SpectrumXRuntimeConfig added in v1.2.0

type SpectrumXRuntimeConfig struct {
	Roce              []ConfigurationParameter `yaml:"roce"`
	AdaptiveRouting   []ConfigurationParameter `yaml:"adaptiveRouting"`
	CongestionControl []ConfigurationParameter `yaml:"congestionControl"`
	InterPacketGap    InterPacketGapConfig     `yaml:"interPacketGap"`
}

type VPD added in v1.2.0

type VPD struct {
	PartNumber   string
	SerialNumber string
	ModelName    string
}

VPD represents the Vital Product Data of a device

Jump to

Keyboard shortcuts

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