Documentation ¶
Index ¶
- Constants
- func ParseLLDPNeighbors(data []byte) (*junosLLDPNeighbors, error)
- type JuniperDriver
- type JuniperELS
- func (j *JuniperELS) ConfigureInterface(update *models.UpdateInterface) (bool, error)
- func (j *JuniperELS) Connect(cfg config.Connection) error
- func (j *JuniperELS) Disconnect() error
- func (j *JuniperELS) GetHardwareInfo() (*models.HardwareInfo, error)
- func (j *JuniperELS) GetInterface(name string) (*models.Interface, error)
- func (j *JuniperELS) GetRunningConfig() (*junosConfiguration, error)
- func (j *JuniperELS) ListArpTable() ([]models.ArpEntry, error)
- func (j *JuniperELS) ListInterfaces() ([]*models.Interface, error)
- func (j *JuniperELS) ListLLDPNeighbors() ([]models.LLDPNeighbor, error)
- type LiveDriver
- type MockDriver
Constants ¶
View Source
const EditPortConfigurationTemplate = `` /* 872-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func ParseLLDPNeighbors ¶
Types ¶
type JuniperDriver ¶
type JuniperELS ¶
type JuniperELS struct { unimplemented.Unimplemented // contains filtered or unexported fields }
JuniperELS is a vendor implementation for Juniper EX switches running JunOS 15.1 or newer. It uses the ELS (Enhanced Layer 2 Software) configuration style and is not compatible with older JunOS versions. The driver is not fully implemented yet.
func NewMockDriver ¶
func NewMockDriver() *JuniperELS
func (*JuniperELS) ConfigureInterface ¶
func (j *JuniperELS) ConfigureInterface(update *models.UpdateInterface) (bool, error)
ConfigureInterface configures a single interface. It returns true if the configuration has changed. If the interface is an uplink, it will return false and an error.
func (*JuniperELS) Connect ¶
func (j *JuniperELS) Connect(cfg config.Connection) error
func (*JuniperELS) Disconnect ¶
func (j *JuniperELS) Disconnect() error
func (*JuniperELS) GetHardwareInfo ¶
func (j *JuniperELS) GetHardwareInfo() (*models.HardwareInfo, error)
func (*JuniperELS) GetInterface ¶
func (j *JuniperELS) GetInterface(name string) (*models.Interface, error)
func (*JuniperELS) GetRunningConfig ¶
func (j *JuniperELS) GetRunningConfig() (*junosConfiguration, error)
func (*JuniperELS) ListArpTable ¶
func (j *JuniperELS) ListArpTable() ([]models.ArpEntry, error)
func (*JuniperELS) ListInterfaces ¶
func (j *JuniperELS) ListInterfaces() ([]*models.Interface, error)
func (*JuniperELS) ListLLDPNeighbors ¶
func (j *JuniperELS) ListLLDPNeighbors() ([]models.LLDPNeighbor, error)
type LiveDriver ¶
type LiveDriver struct {
// contains filtered or unexported fields
}
func (*LiveDriver) Close ¶
func (j *LiveDriver) Close() error
type MockDriver ¶
type MockDriver struct {
// contains filtered or unexported fields
}
func (*MockDriver) Close ¶
func (j *MockDriver) Close() error
Click to show internal directories.
Click to hide internal directories.