config

package
v0.0.0-...-a4e6d7a Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2017 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TX_RX_MODE_TxRx   = "TxRx"
	TXRX              = 0
	TX_RX_MODE_TxOnly = "TxOnly"
	TX_ONLY           = 1
	TX_RX_MODE_RxOnly = "RxOnly"
	RX_ONLY           = 2
)
View Source
const (
	Learned
	Updated
	Removed
	NoOp
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventInfo

type EventInfo struct {
	IfIndex   int32
	EventType int
}

type Global

type Global struct {
	Vrf             string
	Enable          bool
	TranmitInterval int32
	TxRxMode        uint8
	SnoopAndDrop    bool
}

type GlobalState

type GlobalState struct {
	Vrf             string
	Enable          bool
	TranmitInterval int32
	Neighbors       int32
	TotalTxFrames   int32
	TotalRxFrames   int32
}

type Intf

type Intf struct {
	IntfRef string
	Enable  bool
}

this is used for auto-discovery

type IntfConfig

type IntfConfig struct {
	IfIndex  int32
	Enable   bool
	TxRxMode uint8
}

this is used to update configuration request coming from client to server

type IntfState

type IntfState struct {
	IntfRef             string
	IfIndex             int32
	Enable              bool
	SendFrames          int32
	ReceivedFrames      int32
	LocalPort           string
	PeerMac             string
	PeerPort            string
	PeerHostName        string
	HoldTime            string
	SystemDescription   string
	SystemCapabilities  string
	EnabledCapabilities string
}

type PortInfo

type PortInfo struct {
	IfIndex     int32
	Name        string
	OperState   string
	MacAddr     string
	Description string
}

type PortState

type PortState struct {
	IfIndex int32
	IfState string
}

type SystemInfo

type SystemInfo struct {
	Vrf         string
	MgmtIp      string
	Hostname    string
	SwitchMac   string
	SwVersion   string
	Description string
}

Jump to

Keyboard shortcuts

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