mode

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMode

type ConfigMode struct {
	lock.RWMutex
	// contains filtered or unexported fields
}

func NewConfigMode

func NewConfigMode() *ConfigMode

func (*ConfigMode) Get

func (m *ConfigMode) Get() Mode

func (*ConfigMode) Set

func (m *ConfigMode) Set(mode Mode)

type Mode

type Mode int

Mode defines the modes in which BGP agent can be configured.

const (
	// Disabled mode, BGP control plane is not enabled
	Disabled Mode = iota
	// BGPv1 mode is enabled, BGP configuration of the agent will rely on matching CiliumBGPPeeringPolicy for the node.
	BGPv1
	// BGPv2 mode is enabled, BGP configuration of the agent will rely on CiliumBGPNodeConfig, CiliumBGPAdvertisement and CiliumBGPPeerConfig.
	BGPv2
)

Jump to

Keyboard shortcuts

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