bird

package
v0.0.0-...-5b5b1e2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2018 License: BSD-3-Clause Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cache = struct {
	sync.RWMutex
	m map[string]Parsed
}{/* contains filtered or unexported fields */}
View Source
var IPVersion = "4"
View Source
var RateLimitConf struct {
	sync.RWMutex
	Conf RateLimitConfig
}

Functions

func InstallRateLimitReset

func InstallRateLimitReset()

func Run

func Run(args string) (io.Reader, error)

Types

type BirdConfig

type BirdConfig struct {
	Listen         string
	ConfigFilename string `toml:"config"`
	BirdCmd        string `toml:"birdc"`
}
var ClientConf BirdConfig

type Parsed

type Parsed map[string]interface{}
var BirdError Parsed = Parsed{"error": "bird unreachable"}
var NilParse Parsed = (Parsed)(nil)

func Protocols

func Protocols() (Parsed, bool)

func ProtocolsBgp

func ProtocolsBgp() (Parsed, bool)

func RoutesDump

func RoutesDump() (Parsed, bool)

func RoutesDumpPerPeerTable

func RoutesDumpPerPeerTable() (Parsed, bool)

func RoutesDumpSingleTable

func RoutesDumpSingleTable() (Parsed, bool)

func RoutesExport

func RoutesExport(protocol string) (Parsed, bool)

func RoutesExportCount

func RoutesExportCount(protocol string) (Parsed, bool)

func RoutesFiltered

func RoutesFiltered(protocol string) (Parsed, bool)

func RoutesLookupProtocol

func RoutesLookupProtocol(net string, protocol string) (Parsed, bool)

func RoutesLookupTable

func RoutesLookupTable(net string, table string) (Parsed, bool)

func RoutesNoExport

func RoutesNoExport(protocol string) (Parsed, bool)

func RoutesPeer

func RoutesPeer(peer string) (Parsed, bool)

func RoutesPrefixed

func RoutesPrefixed(prefix string) (Parsed, bool)

func RoutesProto

func RoutesProto(protocol string) (Parsed, bool)

func RoutesProtoCount

func RoutesProtoCount(protocol string) (Parsed, bool)

func RoutesTable

func RoutesTable(table string) (Parsed, bool)

func RoutesTableCount

func RoutesTableCount(table string) (Parsed, bool)

func RunAndParse

func RunAndParse(cmd string, parser func(io.Reader) Parsed) (Parsed, bool)

func Status

func Status() (Parsed, bool)

func Symbols

func Symbols() (Parsed, bool)

type ParserConfig

type ParserConfig struct {
	FilterFields       []string `toml:"filter_fields"`
	PerPeerTables      bool     `toml:"per_peer_tables"`
	PeerProtocolPrefix string   `toml:"peer_protocol_prefix"`
	PipeProtocolPrefix string   `toml:"pipe_protocol_prefix"`
}
var (
	ParserConf ParserConfig
)

type RateLimitConfig

type RateLimitConfig struct {
	Reqs    int
	Max     int `toml:"requests_per_minute"`
	Enabled bool
}

type StatusConfig

type StatusConfig struct {
	ReconfigTimestampSource string `toml:"reconfig_timestamp_source"`
	ReconfigTimestampMatch  string `toml:"reconfig_timestamp_match"`

	FilterFields []string `toml:"filter_fields"`
}
var StatusConf StatusConfig

Jump to

Keyboard shortcuts

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