bgp

package
v0.16.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameters

type Parameters struct {
	CiliumNamespace  string
	AgentPodSelector string
	NodeName         string
	Writer           io.Writer
	WaitDuration     time.Duration
	Output           string
}

Parameters contains options for CLI

type Status

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

Status is used to get bgp state from cilium agents

func NewStatus

func NewStatus(client *k8s.Client, p Parameters) *Status

NewStatus returns new bgp.Status struct

func (*Status) GetPeeringState

func (s *Status) GetPeeringState(ctx context.Context) error

GetPeeringState gets peering state from all/specific cilium agent pods.

func (*Status) GetRoutes added in v0.15.21

func (s *Status) GetRoutes(ctx context.Context, args []string) error

GetRoutes gets BGP routes from all/specific cilium agent pods.

Jump to

Keyboard shortcuts

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