config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_config_lemming_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ComponentConfig

type ComponentConfig struct {
	Supervisor1Name string               `protobuf:"bytes,1,opt,name=supervisor1_name,json=supervisor1Name,proto3" json:"supervisor1_name,omitempty"`
	Supervisor2Name string               `protobuf:"bytes,2,opt,name=supervisor2_name,json=supervisor2Name,proto3" json:"supervisor2_name,omitempty"`
	ChassisName     string               `protobuf:"bytes,3,opt,name=chassis_name,json=chassisName,proto3" json:"chassis_name,omitempty"`
	LinecardPrefix  string               `protobuf:"bytes,4,opt,name=linecard_prefix,json=linecardPrefix,proto3" json:"linecard_prefix,omitempty"`
	FabricPrefix    string               `protobuf:"bytes,5,opt,name=fabric_prefix,json=fabricPrefix,proto3" json:"fabric_prefix,omitempty"`
	Linecard        *ComponentTypeConfig `protobuf:"bytes,7,opt,name=linecard,proto3" json:"linecard,omitempty"`
	Fabric          *ComponentTypeConfig `protobuf:"bytes,8,opt,name=fabric,proto3" json:"fabric,omitempty"`
	// contains filtered or unexported fields
}

func (*ComponentConfig) Descriptor deprecated

func (*ComponentConfig) Descriptor() ([]byte, []int)

Deprecated: Use ComponentConfig.ProtoReflect.Descriptor instead.

func (*ComponentConfig) GetChassisName

func (x *ComponentConfig) GetChassisName() string

func (*ComponentConfig) GetFabric

func (x *ComponentConfig) GetFabric() *ComponentTypeConfig

func (*ComponentConfig) GetFabricPrefix

func (x *ComponentConfig) GetFabricPrefix() string

func (*ComponentConfig) GetLinecard

func (x *ComponentConfig) GetLinecard() *ComponentTypeConfig

func (*ComponentConfig) GetLinecardPrefix

func (x *ComponentConfig) GetLinecardPrefix() string

func (*ComponentConfig) GetSupervisor1Name

func (x *ComponentConfig) GetSupervisor1Name() string

func (*ComponentConfig) GetSupervisor2Name

func (x *ComponentConfig) GetSupervisor2Name() string

func (*ComponentConfig) ProtoMessage

func (*ComponentConfig) ProtoMessage()

func (*ComponentConfig) ProtoReflect

func (x *ComponentConfig) ProtoReflect() protoreflect.Message

func (*ComponentConfig) Reset

func (x *ComponentConfig) Reset()

func (*ComponentConfig) String

func (x *ComponentConfig) String() string

type ComponentTypeConfig

type ComponentTypeConfig struct {
	Count      int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	StartIndex int32 `protobuf:"varint,2,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"`
	Step       int32 `protobuf:"varint,3,opt,name=step,proto3" json:"step,omitempty"`
	// contains filtered or unexported fields
}

func (*ComponentTypeConfig) Descriptor deprecated

func (*ComponentTypeConfig) Descriptor() ([]byte, []int)

Deprecated: Use ComponentTypeConfig.ProtoReflect.Descriptor instead.

func (*ComponentTypeConfig) GetCount

func (x *ComponentTypeConfig) GetCount() int32

func (*ComponentTypeConfig) GetStartIndex

func (x *ComponentTypeConfig) GetStartIndex() int32

func (*ComponentTypeConfig) GetStep

func (x *ComponentTypeConfig) GetStep() int32

func (*ComponentTypeConfig) ProtoMessage

func (*ComponentTypeConfig) ProtoMessage()

func (*ComponentTypeConfig) ProtoReflect

func (x *ComponentTypeConfig) ProtoReflect() protoreflect.Message

func (*ComponentTypeConfig) Reset

func (x *ComponentTypeConfig) Reset()

func (*ComponentTypeConfig) String

func (x *ComponentTypeConfig) String() string

type Config

type Config struct {
	Components        *ComponentConfig           `protobuf:"bytes,1,opt,name=components,proto3" json:"components,omitempty"`
	Processes         *ProcessesConfig           `protobuf:"bytes,2,opt,name=processes,proto3" json:"processes,omitempty"`
	Timing            *TimingConfig              `protobuf:"bytes,3,opt,name=timing,proto3" json:"timing,omitempty"`
	NetworkSimulation *NetworkSimConfig          `protobuf:"bytes,4,opt,name=network_simulation,json=networkSimulation,proto3" json:"network_simulation,omitempty"`
	Vendor            *VendorConfig              `protobuf:"bytes,5,opt,name=vendor,proto3" json:"vendor,omitempty"`
	Interfaces        *InterfaceConfig           `protobuf:"bytes,6,opt,name=interfaces,proto3" json:"interfaces,omitempty"`
	LinkQualification *LinkQualificationConfig   `protobuf:"bytes,7,opt,name=link_qualification,json=linkQualification,proto3" json:"link_qualification,omitempty"`
	FaultConfig       *FaultServiceConfiguration `protobuf:"bytes,8,opt,name=fault_config,json=faultConfig,proto3" json:"fault_config,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetComponents

func (x *Config) GetComponents() *ComponentConfig

func (*Config) GetFaultConfig

func (x *Config) GetFaultConfig() *FaultServiceConfiguration

func (*Config) GetInterfaces

func (x *Config) GetInterfaces() *InterfaceConfig

func (*Config) GetLinkQualification

func (x *Config) GetLinkQualification() *LinkQualificationConfig

func (*Config) GetNetworkSimulation

func (x *Config) GetNetworkSimulation() *NetworkSimConfig

func (*Config) GetProcesses

func (x *Config) GetProcesses() *ProcessesConfig

func (*Config) GetTiming

func (x *Config) GetTiming() *TimingConfig

func (*Config) GetVendor

func (x *Config) GetVendor() *VendorConfig

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type FaultServiceConfiguration

type FaultServiceConfiguration struct {
	GnoiFaults []*GNOIFaults `protobuf:"bytes,1,rep,name=gnoi_faults,json=gnoiFaults,proto3" json:"gnoi_faults,omitempty"`
	// contains filtered or unexported fields
}

func (*FaultServiceConfiguration) Descriptor deprecated

func (*FaultServiceConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use FaultServiceConfiguration.ProtoReflect.Descriptor instead.

func (*FaultServiceConfiguration) GetGnoiFaults

func (x *FaultServiceConfiguration) GetGnoiFaults() []*GNOIFaults

func (*FaultServiceConfiguration) ProtoMessage

func (*FaultServiceConfiguration) ProtoMessage()

func (*FaultServiceConfiguration) ProtoReflect

func (*FaultServiceConfiguration) Reset

func (x *FaultServiceConfiguration) Reset()

func (*FaultServiceConfiguration) String

func (x *FaultServiceConfiguration) String() string

type GNOIFaults

type GNOIFaults struct {
	RpcMethod string                `protobuf:"bytes,1,opt,name=rpc_method,json=rpcMethod,proto3" json:"rpc_method,omitempty"`
	Faults    []*fault.FaultMessage `protobuf:"bytes,2,rep,name=faults,proto3" json:"faults,omitempty"`
	// contains filtered or unexported fields
}

func (*GNOIFaults) Descriptor deprecated

func (*GNOIFaults) Descriptor() ([]byte, []int)

Deprecated: Use GNOIFaults.ProtoReflect.Descriptor instead.

func (*GNOIFaults) GetFaults

func (x *GNOIFaults) GetFaults() []*fault.FaultMessage

func (*GNOIFaults) GetRpcMethod

func (x *GNOIFaults) GetRpcMethod() string

func (*GNOIFaults) ProtoMessage

func (*GNOIFaults) ProtoMessage()

func (*GNOIFaults) ProtoReflect

func (x *GNOIFaults) ProtoReflect() protoreflect.Message

func (*GNOIFaults) Reset

func (x *GNOIFaults) Reset()

func (*GNOIFaults) String

func (x *GNOIFaults) String() string

type InterfaceConfig

type InterfaceConfig struct {
	Interface []*InterfaceSpec `protobuf:"bytes,1,rep,name=interface,proto3" json:"interface,omitempty"`
	// contains filtered or unexported fields
}

func (*InterfaceConfig) Descriptor deprecated

func (*InterfaceConfig) Descriptor() ([]byte, []int)

Deprecated: Use InterfaceConfig.ProtoReflect.Descriptor instead.

func (*InterfaceConfig) GetInterface

func (x *InterfaceConfig) GetInterface() []*InterfaceSpec

func (*InterfaceConfig) ProtoMessage

func (*InterfaceConfig) ProtoMessage()

func (*InterfaceConfig) ProtoReflect

func (x *InterfaceConfig) ProtoReflect() protoreflect.Message

func (*InterfaceConfig) Reset

func (x *InterfaceConfig) Reset()

func (*InterfaceConfig) String

func (x *InterfaceConfig) String() string

type InterfaceSpec

type InterfaceSpec struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	IfIndex     uint32 `protobuf:"varint,3,opt,name=if_index,json=ifIndex,proto3" json:"if_index,omitempty"`
	// contains filtered or unexported fields
}

func (*InterfaceSpec) Descriptor deprecated

func (*InterfaceSpec) Descriptor() ([]byte, []int)

Deprecated: Use InterfaceSpec.ProtoReflect.Descriptor instead.

func (*InterfaceSpec) GetDescription

func (x *InterfaceSpec) GetDescription() string

func (*InterfaceSpec) GetIfIndex

func (x *InterfaceSpec) GetIfIndex() uint32

func (*InterfaceSpec) GetName

func (x *InterfaceSpec) GetName() string

func (*InterfaceSpec) ProtoMessage

func (*InterfaceSpec) ProtoMessage()

func (*InterfaceSpec) ProtoReflect

func (x *InterfaceSpec) ProtoReflect() protoreflect.Message

func (*InterfaceSpec) Reset

func (x *InterfaceSpec) Reset()

func (*InterfaceSpec) String

func (x *InterfaceSpec) String() string

type LinkQualificationConfig

type LinkQualificationConfig struct {
	MaxBps                uint64 `protobuf:"varint,1,opt,name=max_bps,json=maxBps,proto3" json:"max_bps,omitempty"`
	MaxPps                uint64 `protobuf:"varint,2,opt,name=max_pps,json=maxPps,proto3" json:"max_pps,omitempty"`
	MinMtu                uint32 `protobuf:"varint,3,opt,name=min_mtu,json=minMtu,proto3" json:"min_mtu,omitempty"`
	MaxMtu                uint32 `protobuf:"varint,4,opt,name=max_mtu,json=maxMtu,proto3" json:"max_mtu,omitempty"`
	MaxHistoricalResults  uint32 `protobuf:"varint,11,opt,name=max_historical_results,json=maxHistoricalResults,proto3" json:"max_historical_results,omitempty"`
	MinSetupDurationMs    int64  `protobuf:"varint,5,opt,name=min_setup_duration_ms,json=minSetupDurationMs,proto3" json:"min_setup_duration_ms,omitempty"`
	MinTeardownDurationMs int64  `` /* 129-byte string literal not displayed */
	MinSampleIntervalMs   int64  `protobuf:"varint,7,opt,name=min_sample_interval_ms,json=minSampleIntervalMs,proto3" json:"min_sample_interval_ms,omitempty"`
	DefaultPacketRate     uint64 `protobuf:"varint,8,opt,name=default_packet_rate,json=defaultPacketRate,proto3" json:"default_packet_rate,omitempty"`
	DefaultPacketSize     uint32 `protobuf:"varint,9,opt,name=default_packet_size,json=defaultPacketSize,proto3" json:"default_packet_size,omitempty"`
	DefaultTestDurationMs int64  `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*LinkQualificationConfig) Descriptor deprecated

func (*LinkQualificationConfig) Descriptor() ([]byte, []int)

Deprecated: Use LinkQualificationConfig.ProtoReflect.Descriptor instead.

func (*LinkQualificationConfig) GetDefaultPacketRate

func (x *LinkQualificationConfig) GetDefaultPacketRate() uint64

func (*LinkQualificationConfig) GetDefaultPacketSize

func (x *LinkQualificationConfig) GetDefaultPacketSize() uint32

func (*LinkQualificationConfig) GetDefaultTestDurationMs

func (x *LinkQualificationConfig) GetDefaultTestDurationMs() int64

func (*LinkQualificationConfig) GetMaxBps

func (x *LinkQualificationConfig) GetMaxBps() uint64

func (*LinkQualificationConfig) GetMaxHistoricalResults

func (x *LinkQualificationConfig) GetMaxHistoricalResults() uint32

func (*LinkQualificationConfig) GetMaxMtu

func (x *LinkQualificationConfig) GetMaxMtu() uint32

func (*LinkQualificationConfig) GetMaxPps

func (x *LinkQualificationConfig) GetMaxPps() uint64

func (*LinkQualificationConfig) GetMinMtu

func (x *LinkQualificationConfig) GetMinMtu() uint32

func (*LinkQualificationConfig) GetMinSampleIntervalMs

func (x *LinkQualificationConfig) GetMinSampleIntervalMs() int64

func (*LinkQualificationConfig) GetMinSetupDurationMs

func (x *LinkQualificationConfig) GetMinSetupDurationMs() int64

func (*LinkQualificationConfig) GetMinTeardownDurationMs

func (x *LinkQualificationConfig) GetMinTeardownDurationMs() int64

func (*LinkQualificationConfig) ProtoMessage

func (*LinkQualificationConfig) ProtoMessage()

func (*LinkQualificationConfig) ProtoReflect

func (x *LinkQualificationConfig) ProtoReflect() protoreflect.Message

func (*LinkQualificationConfig) Reset

func (x *LinkQualificationConfig) Reset()

func (*LinkQualificationConfig) String

func (x *LinkQualificationConfig) String() string

type NetworkSimConfig

type NetworkSimConfig struct {
	BaseLatencyMs   int64   `protobuf:"varint,1,opt,name=base_latency_ms,json=baseLatencyMs,proto3" json:"base_latency_ms,omitempty"`
	LatencyJitterMs int64   `protobuf:"varint,2,opt,name=latency_jitter_ms,json=latencyJitterMs,proto3" json:"latency_jitter_ms,omitempty"`
	PacketLossRate  float32 `protobuf:"fixed32,3,opt,name=packet_loss_rate,json=packetLossRate,proto3" json:"packet_loss_rate,omitempty"`
	DefaultTtl      int32   `protobuf:"varint,4,opt,name=default_ttl,json=defaultTtl,proto3" json:"default_ttl,omitempty"`
	PacketErrorRate float32 `protobuf:"fixed32,5,opt,name=packet_error_rate,json=packetErrorRate,proto3" json:"packet_error_rate,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkSimConfig) Descriptor deprecated

func (*NetworkSimConfig) Descriptor() ([]byte, []int)

Deprecated: Use NetworkSimConfig.ProtoReflect.Descriptor instead.

func (*NetworkSimConfig) GetBaseLatencyMs

func (x *NetworkSimConfig) GetBaseLatencyMs() int64

func (*NetworkSimConfig) GetDefaultTtl

func (x *NetworkSimConfig) GetDefaultTtl() int32

func (*NetworkSimConfig) GetLatencyJitterMs

func (x *NetworkSimConfig) GetLatencyJitterMs() int64

func (*NetworkSimConfig) GetPacketErrorRate

func (x *NetworkSimConfig) GetPacketErrorRate() float32

func (*NetworkSimConfig) GetPacketLossRate

func (x *NetworkSimConfig) GetPacketLossRate() float32

func (*NetworkSimConfig) ProtoMessage

func (*NetworkSimConfig) ProtoMessage()

func (*NetworkSimConfig) ProtoReflect

func (x *NetworkSimConfig) ProtoReflect() protoreflect.Message

func (*NetworkSimConfig) Reset

func (x *NetworkSimConfig) Reset()

func (*NetworkSimConfig) String

func (x *NetworkSimConfig) String() string

type ProcessConfig

type ProcessConfig struct {
	Name              string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Pid               uint32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	CpuUsageUser      uint64 `protobuf:"varint,3,opt,name=cpu_usage_user,json=cpuUsageUser,proto3" json:"cpu_usage_user,omitempty"`
	CpuUsageSystem    uint64 `protobuf:"varint,4,opt,name=cpu_usage_system,json=cpuUsageSystem,proto3" json:"cpu_usage_system,omitempty"`
	CpuUtilization    uint32 `protobuf:"varint,5,opt,name=cpu_utilization,json=cpuUtilization,proto3" json:"cpu_utilization,omitempty"`
	MemoryUsage       uint64 `protobuf:"varint,6,opt,name=memory_usage,json=memoryUsage,proto3" json:"memory_usage,omitempty"`
	MemoryUtilization uint32 `protobuf:"varint,7,opt,name=memory_utilization,json=memoryUtilization,proto3" json:"memory_utilization,omitempty"`
	// contains filtered or unexported fields
}

func (*ProcessConfig) Descriptor deprecated

func (*ProcessConfig) Descriptor() ([]byte, []int)

Deprecated: Use ProcessConfig.ProtoReflect.Descriptor instead.

func (*ProcessConfig) GetCpuUsageSystem

func (x *ProcessConfig) GetCpuUsageSystem() uint64

func (*ProcessConfig) GetCpuUsageUser

func (x *ProcessConfig) GetCpuUsageUser() uint64

func (*ProcessConfig) GetCpuUtilization

func (x *ProcessConfig) GetCpuUtilization() uint32

func (*ProcessConfig) GetMemoryUsage

func (x *ProcessConfig) GetMemoryUsage() uint64

func (*ProcessConfig) GetMemoryUtilization

func (x *ProcessConfig) GetMemoryUtilization() uint32

func (*ProcessConfig) GetName

func (x *ProcessConfig) GetName() string

func (*ProcessConfig) GetPid

func (x *ProcessConfig) GetPid() uint32

func (*ProcessConfig) ProtoMessage

func (*ProcessConfig) ProtoMessage()

func (*ProcessConfig) ProtoReflect

func (x *ProcessConfig) ProtoReflect() protoreflect.Message

func (*ProcessConfig) Reset

func (x *ProcessConfig) Reset()

func (*ProcessConfig) String

func (x *ProcessConfig) String() string

type ProcessesConfig

type ProcessesConfig struct {
	Process              []*ProcessConfig `protobuf:"bytes,1,rep,name=process,proto3" json:"process,omitempty"`
	DefaultRestartOnKill bool             `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ProcessesConfig) Descriptor deprecated

func (*ProcessesConfig) Descriptor() ([]byte, []int)

Deprecated: Use ProcessesConfig.ProtoReflect.Descriptor instead.

func (*ProcessesConfig) GetDefaultRestartOnKill

func (x *ProcessesConfig) GetDefaultRestartOnKill() bool

func (*ProcessesConfig) GetProcess

func (x *ProcessesConfig) GetProcess() []*ProcessConfig

func (*ProcessesConfig) ProtoMessage

func (*ProcessesConfig) ProtoMessage()

func (*ProcessesConfig) ProtoReflect

func (x *ProcessesConfig) ProtoReflect() protoreflect.Message

func (*ProcessesConfig) Reset

func (x *ProcessesConfig) Reset()

func (*ProcessesConfig) String

func (x *ProcessesConfig) String() string

type TimingConfig

type TimingConfig struct {
	SwitchoverDurationMs  int64 `protobuf:"varint,1,opt,name=switchover_duration_ms,json=switchoverDurationMs,proto3" json:"switchover_duration_ms,omitempty"`
	RebootDurationMs      int64 `protobuf:"varint,2,opt,name=reboot_duration_ms,json=rebootDurationMs,proto3" json:"reboot_duration_ms,omitempty"`
	ProcessRestartDelayMs int64 `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TimingConfig) Descriptor deprecated

func (*TimingConfig) Descriptor() ([]byte, []int)

Deprecated: Use TimingConfig.ProtoReflect.Descriptor instead.

func (*TimingConfig) GetProcessRestartDelayMs

func (x *TimingConfig) GetProcessRestartDelayMs() int64

func (*TimingConfig) GetRebootDurationMs

func (x *TimingConfig) GetRebootDurationMs() int64

func (*TimingConfig) GetSwitchoverDurationMs

func (x *TimingConfig) GetSwitchoverDurationMs() int64

func (*TimingConfig) ProtoMessage

func (*TimingConfig) ProtoMessage()

func (*TimingConfig) ProtoReflect

func (x *TimingConfig) ProtoReflect() protoreflect.Message

func (*TimingConfig) Reset

func (x *TimingConfig) Reset()

func (*TimingConfig) String

func (x *TimingConfig) String() string

type VendorConfig

type VendorConfig struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Model     string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"`
	OsVersion string `protobuf:"bytes,3,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"`
	// contains filtered or unexported fields
}

func (*VendorConfig) Descriptor deprecated

func (*VendorConfig) Descriptor() ([]byte, []int)

Deprecated: Use VendorConfig.ProtoReflect.Descriptor instead.

func (*VendorConfig) GetModel

func (x *VendorConfig) GetModel() string

func (*VendorConfig) GetName

func (x *VendorConfig) GetName() string

func (*VendorConfig) GetOsVersion

func (x *VendorConfig) GetOsVersion() string

func (*VendorConfig) ProtoMessage

func (*VendorConfig) ProtoMessage()

func (*VendorConfig) ProtoReflect

func (x *VendorConfig) ProtoReflect() protoreflect.Message

func (*VendorConfig) Reset

func (x *VendorConfig) Reset()

func (*VendorConfig) String

func (x *VendorConfig) String() string

Jump to

Keyboard shortcuts

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