juniper

package
v0.0.0-...-1289ca7 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func ParseArpTable

func ParseArpTable(data []byte) ([]models.ArpEntry, error)

Types

type Juniper

type Juniper struct {
	unimplemented.Unimplemented
	// contains filtered or unexported fields
}

func NewMockDriver

func NewMockDriver() *Juniper

func (*Juniper) ConfigureInterface

func (j *Juniper) ConfigureInterface(update *models.UpdateInterface) (bool, error)

func (*Juniper) Connect

func (j *Juniper) Connect(cfg config.Connection) error

func (*Juniper) Disconnect

func (j *Juniper) Disconnect() error

func (*Juniper) GetHardwareInfo

func (j *Juniper) GetHardwareInfo() (*models.HardwareInfo, error)

func (*Juniper) GetInterface

func (j *Juniper) GetInterface(name string) (*models.Interface, error)

func (*Juniper) GetRunningConfig

func (j *Juniper) GetRunningConfig() (*junosConfiguration, error)

func (*Juniper) ListArpTable

func (j *Juniper) ListArpTable() ([]models.ArpEntry, error)

func (*Juniper) ListInterfaces

func (j *Juniper) ListInterfaces() ([]*models.Interface, error)

func (*Juniper) ListLLDPNeighbors

func (j *Juniper) ListLLDPNeighbors() ([]models.LLDPNeighbor, error)

type JuniperDriver

type JuniperDriver interface {
	Exec(methods ...netconf.RPCMethod) (*netconf.RPCReply, error)
	Close() 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