Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LinkAggregationMetadata ¶ added in v0.24.0
type LinkAggregationMetadata struct {
Enabled bool `json:"Enabled"`
PortID int64 `json:"PortID,omitempty"`
Supported bool `json:"Supported"`
}
LinkAggregationMetadata describes the LLDP link aggregation metadata easyjson:json gendecoder
type Metadata ¶ added in v0.24.0
type Metadata struct {
Description string `json:"Description,omitempty"`
ChassisID string `json:"ChassisID,omitempty"`
ChassisIDType string `json:"ChassisIDType,omitempty"`
SysName string `json:"SysName,omitempty"`
MgmtAddress string `json:"MgmtAddress,omitempty"`
PVID int64 `json:"PVID,omitempty"`
VIDUsageDigest int64 `json:"VIDUsageDigest,omitempty"`
ManagementVID int64 `json:"ManagementVID,omitempty"`
PortID string `json:"PortID,omitempty"`
PortIDType string `json:"PortIDType,omitempty"`
LinkAggregation *LinkAggregationMetadata `json:"LinkAgggregation,omitempty"`
VLANNames []VLANNameMetadata `json:"VLANNames,omitempty"`
PPVIDs []PPVIDMetadata `json:"PPVIDs,omitempty"`
}
Metadata describes the LLDP chassis metadata easyjson:json gendecoder
type PPVIDMetadata ¶ added in v0.24.0
type PPVIDMetadata struct {
Enabled bool `json:"Enabled"`
ID int64 `json:"ID"`
Supported bool `json:"Supported"`
}
PPVIDMetadata describes the LLDP link PPVID metadata easyjson:json gendecoder
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 ¶
NewProbe returns a new LLDP probe
func (*Probe) OnEdgeAdded ¶
OnEdgeAdded is called when a new edge was created on the graph
func (*Probe) OnNodeUpdated ¶
OnNodeUpdated is called when a new node was updated on the graph
Source Files
¶
- lldp.go
- metadata.go
Click to show internal directories.
Click to hide internal directories.