Documentation
¶
Index ¶
- Constants
- func FirmwareSourceNotReadyError(firmwareSourceName, msg string) error
- func IncorrectSpecError(msg string) error
- func IsFirmwareSourceNotReadyError(err error) bool
- func IsIncorrectSpecError(err error) bool
- func IsValuesDoNotMatchError(err error) bool
- func ValuesDoNotMatchError(param ConfigurationParameter, value string) error
- type ConfigurationParameter
- type InterPacketGapConfig
- type NvConfigQuery
- type SpectrumXConfig
- type SpectrumXRuntimeConfig
- type VPD
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 IncorrectSpecError ¶
func IsFirmwareSourceNotReadyError ¶ added in v0.1.18
func IsIncorrectSpecError ¶
func IsValuesDoNotMatchError ¶ added in v1.2.0
func ValuesDoNotMatchError ¶ added in v1.2.0
func ValuesDoNotMatchError(param ConfigurationParameter, value string) error
Types ¶
type ConfigurationParameter ¶ added in v1.2.0
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"`
}
Click to show internal directories.
Click to hide internal directories.