srl

package
v0.57.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SRLinuxDefaultType = "ixrd2l" // default srl node type

)

Variables

View Source
var (
	KindNames = []string{"srl", "nokia_srlinux"}

	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 *nodes.NodeRegistry)

Register registers the node in the NodeRegistry.

Types

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