fsos_s5

package
v0.0.0-...-3e46740 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: GPL-3.0 Imports: 13 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 FSComS5

type FSComS5 struct {
	fsos_s3.FSComS3
}

func (*FSComS5) ConfigureInterface

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

func (*FSComS5) GetConfiguration

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

GetConfiguration returns the configuration of a FSComS3 switch.

func (*FSComS5) GetHardwareInfo

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

func (*FSComS5) GetInterface

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

func (*FSComS5) ListArpTable

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

func (*FSComS5) ListInterfaces

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

func (*FSComS5) ListLLDPNeighbors

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

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