config

package
v0.0.0-...-ac9ef1f 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: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATE_UP      = "UP"
	STATE_DOWN    = "DOWN"
	CONFIG_CREATE = "CREATE"
	CONFIG_DELETE = "DELETE"
	CONFIG_UPDATE = "UPDATE"

	L2_NOTIFICATION    = "UNKNOWN_IP"
	L2_TAG_TYPE        = "tag"
	L2_UNTAG_TYPE      = "untag"
	L3_INVALID_IFINDEX = -1

	INTERNAL_VLAN = -1
)
View Source
const (
	DELETE_BY_IFNAME
	DELETE_BY_IPADDR
	REFRESH_BY_IFNAME
	REFRESH_BY_IPADDR
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionData

type ActionData struct {
	Type    int
	NbrIp   string
	IntfRef string
}

type GlobalState

type GlobalState struct {
	Vrf                         string
	RetransmitInterval          int32
	ReachableTime               int32
	RouterAdvertisementInterval int32
	Neighbors                   int32
	TotalTxPackets              int64
	TotalRxPackets              int64
}

type IPIntfNotification

type IPIntfNotification struct {
	IfIndex   int32
	IntfRef   string
	IpAddr    string
	Operation string
}

type IPv6IntfInfo

type IPv6IntfInfo struct {
	IntfRef     string
	IfIndex     int32
	IpAddr      string
	MsgType     string
	OperState   string
	LinkLocalIp string
}

type InterfaceEntries

type InterfaceEntries struct {
	IntfRef         string
	IfIndex         int32
	LinkScopeIp     string
	GlobalScopeIp   string
	SendPackets     int64
	ReceivedPackets int64
	Neighbor        []NeighborEntry
}

type MacMoveNotification

type MacMoveNotification struct {
	IpAddr  string
	IfIndex int32
	VlanId  int32
}

type NeighborConfig

type NeighborConfig struct {
	MacAddr string
	VlanId  int32
	IfIndex int32
	Intf    string
	IpAddr  string
}

type NeighborEntry

type NeighborEntry struct {
	IpAddr          string
	MacAddr         string
	ExpiryTimeLeft  string
	SendPackets     int64
	ReceivedPackets int64
	State           string
}

type PacketData

type PacketData struct {
	SendPktType layers.ICMPv6TypeCode
	NeighborIp  string
	NeighborMac string
	IfIndex     int32
	FastProbe   bool
}

type PortInfo

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

type PortState

type PortState struct {
	IfIndex int32
	IfState string
}

type VlanInfo

type VlanInfo struct {
	VlanId        int32
	VlanIfIndex   int32          // vlan ifIndex generated by the system
	Name          string         // vlan name
	UntagPortsMap map[int32]bool // key is port ifIndex
	TagPortsMap   map[int32]bool
	OperState     string
}

type VlanNotification

type VlanNotification struct {
	VlanId      int32
	VlanIfIndex int32
	VlanName    string
	Operation   string
	UntagPorts  []int32
	TagPorts    []int32
}

Jump to

Keyboard shortcuts

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