srl

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIncompatibleCliConn = errors.New("incompatible cli connection in use")

ErrIncompatibleCliConn raised when an invalid scrapligo cli transport type is found.

Functions

func New

func New(nodeImpl *node.Impl) (node.Node, error)

Types

type Node

type Node struct {
	*node.Impl
	// contains filtered or unexported fields
}

func (*Node) Create

func (n *Node) Create(ctx context.Context) error

Create creates a Nokia SR Linux node by interfacing with srl-labs/srl-controller

func (*Node) Delete

func (n *Node) Delete(ctx context.Context) error

func (*Node) GenerateSelfSigned

func (n *Node) GenerateSelfSigned(ctx context.Context) error

func (*Node) PatchCLIConnOpen

func (n *Node) PatchCLIConnOpen(ns string) error

PatchCLIConnOpen sets the OpenCmd and ExecCmd of system transport to work with `kubectl exec` terminal.

func (*Node) SpawnCLIConn

func (n *Node) SpawnCLIConn(ns string) error

SpawnCLIConn spawns a CLI connection towards a Network OS using `kubectl exec` terminal and ensures CLI is ready to accept inputs.

func (*Node) WaitCLIReady

func (n *Node) WaitCLIReady() error

WaitCLIReady attempts to open the transport channel towards a Network OS and perform scrapligo OnOpen actions for a given platform. Retries indefinitely till success.

Jump to

Keyboard shortcuts

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