kne

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadKneTopology

func LoadKneTopology(rawTopology string) (*knetopologyproto.Topology, error)

LoadKneTopology loads a kne topology definition from a raw kne topology.

func VendorModelToClabKind

func VendorModelToClabKind(kneVendor, kneModel string) string

VendorModelToClabKind accepts a valid kne Kind and optionally model, and returns the corresponding containerlab kind. ex: kne vendor of NOKIA would return srl or "nokia_srlinux"; kne vendor of CISCO and model "xrd" would return "cisco_xrd" (if/when that kind exists :p).

func VendorModelToDefaultPorts

func VendorModelToDefaultPorts(kneVendor, kneModel string) []string

VendorModelToDefaultPorts accepts a valid kne Kind and optionally model and returns the default ports configured in kne. Since we are not actually "doing" kne things, and this is no longer defined in the topos we just have this mapping we need to keep updated. The value returned is a slice of strings that mirror containerlab port definitions.

func VendorModelToImage

func VendorModelToImage(kneVendor, kneModel string) string

VendorModelToImage accepts a valid kne Kind and optionally model, and returns the corresponding image to use in containerlab. Ideally users will specify images in their topology file though as some images are not publicly available (unlike srl!).

Types

This section is empty.

Jump to

Keyboard shortcuts

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