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