bird

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

The package advertises list of networks by rerendering bird config file and optionally sending SIGHUP to the bird.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config router.Config) (router.Interface, error)

Types

type BirdRoutePublisher

type BirdRoutePublisher struct {
	// Connect to BGP
	*sync.Mutex

	// .NeighborIP can be used inside the template
	// optional
	NeighborIP string

	// .NeighborAS can be used inside the template
	// optional
	NeighborAS string

	// .LocalAS can be used inside the template
	// optional
	LocalAS string

	// Extra output
	Debug bool

	// .Args available inside the template as a map
	Args map[string]interface{}

	// .Networks can be used inside the template
	Networks []net.IPNet
	// contains filtered or unexported fields
}

Default implementation of router.Interface that publishes routes via bird BGP daemon.

func (BirdRoutePublisher) Update

func (q BirdRoutePublisher) Update(networks []net.IPNet, args map[string]interface{}) error

Update implements router.Interface by rendering new config file for the bird.

Jump to

Keyboard shortcuts

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