srl

package
v0.83.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: BSD-3-Clause Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SRLinuxDefaultType = "ixr-d2l" // default srl node type

)

Variables

View Source
var (
	InterfaceRegexp = regexp.MustCompile(
		`ethernet-(?P<linecard>\d+)/(?P<port>\d+)(?:/(?P<channel>\d+))?`,
	)

	InterfaceHelp = "ethernet-L/P, ethernet-L/P/C or eL-P, eL-P-C (where L, P, C >= 1)"
)

Functions

func Register added in v0.34.0

func Register(r *clabnodes.NodeRegistry)

Register registers the node in the NodeRegistry.

Types

type Component added in v0.80.0

type Component struct {
	Slot string `json:"slot,omitempty" yaml:"slot,omitempty"`
	Type string `json:"type,omitempty" yaml:"type,omitempty"`
}

Component is an SR Linux line card.

type KindSpecificConfig added in v0.80.0

type KindSpecificConfig struct {
	// Components are the line cards of a modular chassis.
	Components []*Component `json:"components,omitempty" yaml:"components,omitempty"`
	// CustomPrompt sets the containerlab CLI prompt. Defaults to true.
	CustomPrompt bool `json:"custom-prompt" yaml:"custom-prompt"`
	// EDADefaultGRPCServer adds the EDA TLS profile to the default mgmt gRPC server instead of
	// adding a dedicated eda-mgmt gRPC server.
	EDADefaultGRPCServer bool `json:"eda-default-grpc-server,omitempty" yaml:"eda-default-grpc-server,omitempty"` //nolint:lll
}

KindSpecificConfig is the nokia_srlinux kind-specific config, set as keys on the node definition.

func (*KindSpecificConfig) SetDefaults added in v0.80.0

func (c *KindSpecificConfig) SetDefaults()

SetDefaults implements clabnodes.KindSpecificConfigDefaulter.

type SrlVersion

type SrlVersion struct {
	Major  string
	Minor  string
	Patch  string
	Build  string
	Commit string
}

SrlVersion represents an SR Linux version as a set of fields.

func (*SrlVersion) MajorMinorSemverString added in v0.53.0

func (v *SrlVersion) MajorMinorSemverString() string

MajorMinorSemverString returns a string representation of the major.minor version with a leading v.

func (*SrlVersion) String added in v0.44.0

func (v *SrlVersion) String() string

String returns a string representation of the version in a semver fashion (with leading v).

Jump to

Keyboard shortcuts

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