cisco_iol

package
v0.0.0-0.60.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IOLCfgTpl, _ = template.New("clab-iol-default-config").Funcs(
		gomplate.CreateFuncs(context.Background(), new(data.Data))).Parse(cfgTemplate)

	InterfaceRegexp = regexp.MustCompile(`(?:e|Ethernet)\s?(?P<slot>\d+)/(?P<port>\d+)$`)
	InterfaceOffset = 1
	InterfaceHelp   = "eX/Y or EthernetX/Y (where X >= 0 and Y >= 1)"
)
View Source
var DefaultIntfRegexp = regexp.MustCompile(`eth[1-9][0-9]*$`)

Functions

func Register

func Register(r *nodes.NodeRegistry)

Register registers the node in the NodeRegistry.

Types

type IOLInterface

type IOLInterface struct {
	IfaceName string
	IfaceIdx  int
	Slot      int
	Port      int
}

IOLinterface struct stores mapping info between IOL interface name and linux container interface.

type IOLTemplateData

type IOLTemplateData struct {
	Hostname           string
	IsL2Node           bool
	MgmtIPv4Addr       string
	MgmtIPv4SubnetMask string
	MgmtIPv4GW         string
	MgmtIPv6Addr       string
	MgmtIPv6PrefixLen  int
	MgmtIPv6GW         string
	DataIFaces         []IOLInterface
}

Jump to

Keyboard shortcuts

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