repository

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assets

type Assets struct {
	DeviceInventory    []*dcim.NetworkDevice
	CmdbBGPGlobal      []*bgp.BGPGlobal
	CmdbBGPSessions    []*bgp.Session
	CmdbPeerGroups     []*bgp.PeerGroup
	CmdbRoutePolicies  []*routingpolicy.RoutePolicy
	CmdbPrefixLists    []*routingpolicy.PrefixList
	CmdbCommunityLists []*routingpolicy.CommunityList
	CmdbSNMP           []*snmp.SNMP
}

func FetchAssets

func FetchAssets(reportCh chan report.Message) (*Assets, error)

FetchAssets get data from all ingestors.

func (*Assets) Precompute

func (i *Assets) Precompute() *AssetsPerDevice

func (*Assets) PrintStats

func (i *Assets) PrintStats()

PrintStats prints number of asset per ingestor.

func (*Assets) ReportStats

func (i *Assets) ReportStats(messageChan chan<- report.Message)

ReportStats sends stats to current Report.

type AssetsPerDevice

type AssetsPerDevice struct {
	BGPGlobal      map[string]*bgp.BGPGlobal
	BGPsessions    map[string][]*bgp.Session
	PeerGroups     map[string][]*bgp.PeerGroup
	PrefixLists    map[string][]*routingpolicy.PrefixList
	CommunityLists map[string][]*routingpolicy.CommunityList
	RoutePolicies  map[string][]*routingpolicy.RoutePolicy
	SNMP           map[string]*snmp.SNMP
}

Jump to

Keyboard shortcuts

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