speaker

package
v1.12.12 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBGPGrpcPort                 = 50051
	DefaultBGPClusterAs                = 65000
	DefaultBGPNeighborAs               = 65001
	DefaultBGPHoldtime                 = 90 * time.Second
	DefaultPprofPort                   = 10667
	DefaultGracefulRestartDeferralTime = 360 * time.Second
	DefaultGracefulRestartTime         = 90 * time.Second
	DefaultEbgpMultiHop                = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	GrpcHost                    string
	GrpcPort                    uint32
	ClusterAs                   uint32
	RouterID                    string
	NeighborAddress             string
	NeighborIPv6Address         string
	NeighborAs                  uint32
	AuthPassword                string
	HoldTime                    float64
	BgpServer                   *gobgp.BgpServer
	AnnounceClusterIP           bool
	GracefulRestart             bool
	GracefulRestartDeferralTime time.Duration
	GracefulRestartTime         time.Duration
	PassiveMode                 bool
	EbgpMultihopTTL             uint8

	KubeConfigFile string
	KubeClient     kubernetes.Interface
	KubeOvnClient  clientset.Interface

	PprofPort uint32
}

func ParseFlags

func ParseFlags() (*Configuration, error)

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(config *Configuration) *Controller

func (*Controller) Run

func (c *Controller) Run(stopCh <-chan struct{})

Jump to

Keyboard shortcuts

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