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 FSComS5
- func (fs *FSComS5) ConfigureInterface(update *models.UpdateInterface) (bool, error)
- func (fs *FSComS5) GetConfiguration() (*Configuration, error)
- func (fs *FSComS5) GetHardwareInfo() (*models.HardwareInfo, error)
- func (fs *FSComS5) GetInterface(name string) (*models.Interface, error)
- func (fs *FSComS5) ListArpTable() ([]models.ArpEntry, error)
- func (fs *FSComS5) ListInterfaces() ([]*models.Interface, error)
- func (fs *FSComS5) ListLLDPNeighbors() ([]models.LLDPNeighbor, 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 FSComS5 ¶
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 (*FSComS5) ListLLDPNeighbors ¶
func (fs *FSComS5) 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.