route

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 RouteRpc

type RouteRpc struct {
	Information struct {
		Tables []RouteTable `xml:"route-table"`
	} `xml:"route-summary-information"`
}

type RouteTable

type RouteTable struct {
	Name         string               `xml:"table-name"`
	MaxRoutes    int64                `xml:"prefix-max"`
	TotalRoutes  int64                `xml:"total-route-count"`
	ActiveRoutes int64                `xml:"active-route-count"`
	Protocols    []RouteTableProtocol `xml:"protocols"`
}

type RouteTableProtocol

type RouteTableProtocol struct {
	Name         string `xml:"protocol-name"`
	Routes       int64  `xml:"protocol-route-count"`
	ActiveRoutes int64  `xml:"active-route-count"`
}

Jump to

Keyboard shortcuts

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