fsos_s3

package
v0.0.0-...-1289ca7 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseArpTable

func ParseArpTable(output string) ([]models.ArpEntry, error)

func ParseConfiguration

func ParseConfiguration(cfg string) iosconfig.Config

ParseConfiguration parses the configuration of a FSComS3 switch.

func ParseHardwareInfo

func ParseHardwareInfo(output string) (*models.HardwareInfo, error)

func ParseInterfaces

func ParseInterfaces(output string) (map[string]fscomInterface, error)

func ParseLLDPNeighbors

func ParseLLDPNeighbors(output string) ([]models.LLDPNeighbor, error)

Types

type Configuration

type Configuration iosconfig.Config

func (Configuration) GetInterface

func (cfg Configuration) GetInterface(name string) (*models.Interface, error)

func (Configuration) ListInterfaces

func (cfg Configuration) ListInterfaces() ([]*models.Interface, error)

type FSComS3

type FSComS3 struct {
	unimplemented.Unimplemented

	LoginCommands []string
	// contains filtered or unexported fields
}

func (*FSComS3) ConfigureInterface

func (fs *FSComS3) ConfigureInterface(update *models.UpdateInterface) (bool, error)

func (*FSComS3) Connect

func (fs *FSComS3) Connect(cfg config.Connection) error

Connect Connecting to a FiberStore switch using SSH

func (*FSComS3) Disconnect

func (fs *FSComS3) Disconnect() error

func (*FSComS3) GetConfiguration

func (fs *FSComS3) GetConfiguration() (*Configuration, error)

GetConfiguration returns the configuration of a FSComS3 switch.

func (*FSComS3) GetHardwareInfo

func (fs *FSComS3) GetHardwareInfo() (*models.HardwareInfo, error)

func (*FSComS3) GetInterface

func (fs *FSComS3) GetInterface(name string) (*models.Interface, error)

func (*FSComS3) ListArpTable

func (fs *FSComS3) ListArpTable() ([]models.ArpEntry, error)

func (*FSComS3) ListInterfaces

func (fs *FSComS3) ListInterfaces() ([]*models.Interface, error)

func (*FSComS3) ListLLDPNeighbors

func (fs *FSComS3) ListLLDPNeighbors() ([]models.LLDPNeighbor, error)

func (*FSComS3) Save

func (fs *FSComS3) Save() error

/ save saves the configuration to startup config

func (*FSComS3) SendCommands

func (fs *FSComS3) SendCommands(commands ...string) (string, error)

SendCommands sends a command to the switch and returns the output

type InterfaceMode

type InterfaceMode string
const (
	InterfaceModeAccess InterfaceMode = "access"
	InterfaceModeTrunk  InterfaceMode = "trunk"
	InterfaceModeHybrid InterfaceMode = "hybrid"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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