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 FSComN5
- func (fs *FSComN5) ConfigureInterface(update *models.UpdateInterface) (bool, error)
- func (fs *FSComN5) GetConfiguration() (*Configuration, error)
- func (fs *FSComN5) GetHardwareInfo() (*models.HardwareInfo, error)
- func (fs *FSComN5) GetInterface(name string) (*models.Interface, error)
- func (fs *FSComN5) ListArpTable() ([]models.ArpEntry, error)
- func (fs *FSComN5) ListInterfaces() ([]*models.Interface, error)
- func (fs *FSComN5) 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 FSComN5 ¶
func (*FSComN5) ConfigureInterface ¶
func (fs *FSComN5) ConfigureInterface(update *models.UpdateInterface) (bool, error)
func (*FSComN5) GetConfiguration ¶
func (fs *FSComN5) GetConfiguration() (*Configuration, error)
GetConfiguration returns the configuration of a FSComS3 switch.
func (*FSComN5) GetHardwareInfo ¶
func (fs *FSComN5) GetHardwareInfo() (*models.HardwareInfo, error)
func (*FSComN5) GetInterface ¶
func (*FSComN5) ListLLDPNeighbors ¶
func (fs *FSComN5) 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.