bgp

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2018 License: MIT Imports: 3 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCollector

func NewCollector() collector.RPCCollector

NewCollector creates a new collector

Types

type BgpPeer

type BgpPeer struct {
	Ip             string `xml:"peer-address"`
	Asn            string `xml:"peer-as"`
	State          string `xml:"peer-state"`
	Description    string `xml:"description"`
	Flaps          int64  `xml:"flap-count"`
	InputMessages  int64  `xml:"input-messages"`
	OutputMessages int64  `xml:"output-messages"`
	Rib            struct {
		ActivePrefixes   int64 `xml:"active-prefix-count"`
		ReceivedPrefixes int64 `xml:"received-prefix-count"`
		AcceptedPrefixes int64 `xml:"accepted-prefix-count"`
		RejectedPrefixes int64 `xml:"suppressed-prefix-count"`
	} `xml:"bgp-rib"`
}

type BgpRpc

type BgpRpc struct {
	Information struct {
		Peers []BgpPeer `xml:"bgp-peer"`
	} `xml:"bgp-information"`
}

type BgpSession

type BgpSession struct {
	Ip               string
	Asn              string
	Description      string
	Up               bool
	ReceivedPrefixes float64
	AcceptedPrefixes float64
	RejectedPrefixes float64
	ActivePrefixes   float64
	InputMessages    float64
	OutputMessages   float64
	Flaps            float64
}

Jump to

Keyboard shortcuts

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