juniper_els

package
v0.0.0-...-95e1a72 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const EditPortConfigurationTemplate = `` /* 872-byte string literal not displayed */

Variables

This section is empty.

Functions

func ParseLLDPNeighbors

func ParseLLDPNeighbors(data []byte) (*junosLLDPNeighbors, error)

Types

type JuniperDriver

type JuniperDriver interface {
	Exec(methods ...netconf.RPCMethod) (*netconf.RPCReply, error)
	Close() error
}

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

func (*LiveDriver) Exec

func (j *LiveDriver) Exec(methods ...netconf.RPCMethod) (*netconf.RPCReply, error)

type MockDriver

type MockDriver struct {
	// contains filtered or unexported fields
}

func (*MockDriver) Close

func (j *MockDriver) Close() error

func (*MockDriver) Exec

func (j *MockDriver) Exec(methods ...netconf.RPCMethod) (*netconf.RPCReply, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL