lldp

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: Apache-2.0 Imports: 17 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetadataDecoder added in v0.24.0

func MetadataDecoder(raw json.RawMessage) (common.Getter, error)

MetadataDecoder implements the JSON raw decoder for LLDP metadata

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 {
}

Probe describes a LLDP probe that does nothing

func (*Probe) Init added in v0.25.0

func (p *Probe) Init(ctx tp.Context, bundle *probe.Bundle) (*Probe, error)

Init initializes a new LLDP probe

func (*Probe) Start

func (p *Probe) Start()

Start the probe

func (*Probe) Stop

func (p *Probe) Stop()

Stop the probe

type VLANNameMetadata added in v0.24.0

type VLANNameMetadata struct {
	ID   int64  `json:"ID"`
	Name string `json:"Name"`
}

VLANNameMetadata describes the LLDP VLAN metadata easyjson:json gendecoder

Jump to

Keyboard shortcuts

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