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 ¶
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).
Click to show internal directories.
Click to hide internal directories.