Documentation ¶
Index ¶
- func ParseArpTable(output string) ([]models.ArpEntry, error)
- func ParseConfiguration(cfg string) iosconfig.Config
- func ParseHardwareInfo(output string) (*models.HardwareInfo, error)
- func ParseInterfaces(output string) (map[string]fscomInterface, error)
- func ParseLLDPNeighbors(output string) ([]models.LLDPNeighbor, error)
- type Configuration
- type FSComS3
- func (fs *FSComS3) ConfigureInterface(update *models.UpdateInterface) (bool, error)
- func (fs *FSComS3) Connect(cfg config.Connection) error
- func (fs *FSComS3) Disconnect() error
- func (fs *FSComS3) GetConfiguration() (*Configuration, error)
- func (fs *FSComS3) GetHardwareInfo() (*models.HardwareInfo, error)
- func (fs *FSComS3) GetInterface(name string) (*models.Interface, error)
- func (fs *FSComS3) ListArpTable() ([]models.ArpEntry, error)
- func (fs *FSComS3) ListInterfaces() ([]*models.Interface, error)
- func (fs *FSComS3) ListLLDPNeighbors() ([]models.LLDPNeighbor, error)
- func (fs *FSComS3) Save() error
- func (fs *FSComS3) SendCommands(commands ...string) (string, error)
- type InterfaceMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseConfiguration ¶
ParseConfiguration parses the configuration of a FSComS3 switch.
func ParseHardwareInfo ¶
func ParseHardwareInfo(output string) (*models.HardwareInfo, error)
func ParseInterfaces ¶
func ParseLLDPNeighbors ¶
func ParseLLDPNeighbors(output string) ([]models.LLDPNeighbor, error)
Types ¶
type Configuration ¶
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 (*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 (*FSComS3) ListLLDPNeighbors ¶
func (fs *FSComS3) ListLLDPNeighbors() ([]models.LLDPNeighbor, error)
type InterfaceMode ¶
type InterfaceMode string
const ( InterfaceModeAccess InterfaceMode = "access" InterfaceModeTrunk InterfaceMode = "trunk" InterfaceModeHybrid InterfaceMode = "hybrid" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.