Documentation ¶
Index ¶
- func MoveCacheAndReconfigure(birdDirectory string, cacheDirectory string, birdSocket string, ...)
- func Read(r io.Reader) (string, error)
- func ReadClean(r io.Reader)
- func Reformat(input string) string
- func RunCommand(command string, socket string) (string, string, error)
- func Validate(binary string, cacheDir string)
- type BGPState
- type ProtocolState
- type Routes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MoveCacheAndReconfigure ¶
func MoveCacheAndReconfigure(birdDirectory string, cacheDirectory string, birdSocket string, noConfigure bool)
MoveCacheAndReconfigure moves cached files to the production BIRD directory and reconfigures
func ReadClean ¶
ReadClean reads from the provided reader and trims unneeded whitespace and bird 4-digit numbers
func Reformat ¶
Reformat takes a BIRD config file as a string and outputs a nicely formatted version as a string
func RunCommand ¶
RunCommand runs a BIRD command and returns the output, version, and error
Types ¶
type ProtocolState ¶
type ProtocolState struct { Name string Proto string Table string State string Since string Info string Routes *Routes BGP *BGPState }
func ParseProtocol ¶
func ParseProtocol(p string) (*ProtocolState, error)
ParseProtocol parses a single protocol
func ParseProtocols ¶
func ParseProtocols(p string) ([]*ProtocolState, error)
ParseProtocols parses a list of protocols
Click to show internal directories.
Click to hide internal directories.