juniper

package
v0.0.0-...-cdfaeb0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const EditPortConfigurationTemplate = `` /* 859-byte string literal not displayed */
View Source
const Vendor registry.Vendor = "juniper"

Variables

This section is empty.

Functions

func ParseArpTable

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

Types

type Driver

type Driver interface {
	SyncRPC(operation message.RPCMethod, timeout int32) (*message.RPCReply, error)
	Close() error
}

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)

func (*Juniper) Vendor

func (j *Juniper) Vendor() registry.Vendor

type LiveDriver

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

func (*LiveDriver) Close

func (j *LiveDriver) Close() error

func (*LiveDriver) SyncRPC

func (j *LiveDriver) SyncRPC(operation message.RPCMethod, timeout int32) (*message.RPCReply, error)

type MockDriver

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

func (*MockDriver) Close

func (j *MockDriver) Close() error

func (*MockDriver) SyncRPC

func (j *MockDriver) SyncRPC(operation message.RPCMethod, timeout int32) (*message.RPCReply, error)

Jump to

Keyboard shortcuts

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