lldp

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 16 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Probe

type Probe struct {
	sync.RWMutex
	graph.DefaultGraphListener
	// contains filtered or unexported fields
}

Probe describes the probe that is in charge of listening for LLDP packets on interfaces and create the corresponding chassis and port nodes

func NewProbe

func NewProbe(g *graph.Graph, hostNode *graph.Node, interfaces []string) (*Probe, error)

NewProbe returns a new LLDP probe

func (*Probe) OnEdgeAdded

func (p *Probe) OnEdgeAdded(e *graph.Edge)

OnEdgeAdded is called when a new edge was created on the graph

func (*Probe) OnNodeUpdated

func (p *Probe) OnNodeUpdated(n *graph.Node)

OnNodeUpdated is called when a new node was updated on the graph

func (*Probe) Start

func (p *Probe) Start()

Start capturing LLDP packets

func (*Probe) Stop

func (p *Probe) Stop()

Stop capturing LLDP packets

Jump to

Keyboard shortcuts

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