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 ¶
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.