foozler

package
v0.0.0-...-fba0bba Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package foozler provides functionality for debugging a Cisco switch running l2t. In particular, this some tooling to get debug output (the "fooz") into another application (the "ler" action).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Debugee

type Debugee struct {
	// contains filtered or unexported fields
}

Debugee represents a Cisco switch that runs l2t. In this case - as a a debug target. Upon connection, the target switch will be configured to produce l2t debug output.

func ConnectTo

func ConnectTo(address string, port int, clientConfig *ssh.ClientConfig) (*Debugee, error)

ConnectTo connects to a Cisco switch via SSH to facilitate debugging.

func (*Debugee) Close

func (o *Debugee) Close()

Close closes the SSH session.

func (*Debugee) Disable

func (o *Debugee) Disable()

Disable disables output from the switch.

func (*Debugee) Enable

func (o *Debugee) Enable()

Enable enables output from the switch.

func (*Debugee) Execute

func (o *Debugee) Execute(command string) error

Execute executes a command on the switch.

func (*Debugee) Output

func (o *Debugee) Output() <-chan string

Output returns a channel that receives debug output from a switch when output is enabled.

func (*Debugee) Wait

func (o *Debugee) Wait() <-chan error

Wait returns a channel that receives nil, or an error when the SSH session ends.

Jump to

Keyboard shortcuts

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