config

package
v0.14.0-calicov3.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataInterfaceSwIfIndex = uint32(1) // Assumption: the VPP config ensures this is true
	CNIServerSocket        = "/var/run/calico/cni-server.sock"
	FelixDataplaneSocket   = "/var/run/calico/felix-dataplane.sock"
	VppAPISocket           = "/var/run/vpp/vpp-api.sock"
	VppManagerStatusFile   = "/var/run/vpp/vppmanagerstatus"
	VppManagerTapIdxFile   = "/var/run/vpp/vppmanagertap0"
	VppManagerLinuxMtu     = "/var/run/vpp/vppmanagerlinuxmtu"
	CalicoVppPidFile       = "/var/run/vpp/calico_vpp.pid"
	CniServerStateFile     = "/var/run/vpp/calico_vpp_pod_state"

	NodeNameEnvVar             = "NODENAME"
	TapNumRxQueuesEnvVar       = "CALICOVPP_TAP_RX_QUEUES"
	TapNumTxQueuesEnvVar       = "CALICOVPP_TAP_TX_QUEUES"
	TapGSOEnvVar               = "CALICOVPP_DEBUG_ENABLE_GSO"
	EnableServicesEnvVar       = "CALICOVPP_DEBUG_ENABLE_NAT"
	EnableMaglevEnvVar         = "CALICOVPP_DEBUG_ENABLE_MAGLEV"
	EnablePoliciesEnvVar       = "CALICOVPP_DEBUG_ENABLE_POLICIES"
	CrossIpsecTunnelsEnvVar    = "CALICOVPP_IPSEC_CROSS_TUNNELS"
	EnableIPSecEnvVar          = "CALICOVPP_IPSEC_ENABLED"
	IPSecExtraAddressesEnvVar  = "CALICOVPP_IPSEC_ASSUME_EXTRA_ADDRESSES"
	IPSecIkev2PskEnvVar        = "CALICOVPP_IPSEC_IKEV2_PSK"
	TapRxModeEnvVar            = "CALICOVPP_TAP_RX_MODE"
	TapQueueSizeEnvVar         = "CALICOVPP_TAP_RING_SIZE"
	IpsecNbAsyncCryptoThEnvVar = "CALICOVPP_IPSEC_NB_ASYNC_CRYPTO_THREAD"
	BgpLogLevelEnvVar          = "CALICO_BGP_LOGSEVERITYSCREEN"
	LogLevelEnvVar             = "CALICO_LOG_LEVEL"
	ServicePrefixEnvVar        = "SERVICE_PREFIX"

	DefaultVXLANVni      = 4096
	DefaultWireguardPort = 51820
)

Variables

View Source
var (
	TapNumRxQueues           = 1
	TapNumTxQueues           = 1
	TapGSOEnabled            = true
	EnableMaglev             = true
	EnableServices           = true
	EnablePolicies           = true
	EnableIPSec              = false
	IpsecAddressCount        = 1
	CrossIpsecTunnels        = false
	IPSecIkev2Psk            = ""
	TapRxMode                = defaultRxMode
	BgpLogLevel              = logrus.InfoLevel
	LogLevel                 = logrus.InfoLevel
	NodeName                 = ""
	ServiceCIDRs             []*net.IPNet
	TapRxQueueSize           int = 0
	TapTxQueueSize           int = 0
	HostMtu                  int = 0
	PodMtu                   int = 0
	IpsecNbAsyncCryptoThread int = 0
)

Functions

func HandleFelixConfig

func HandleFelixConfig(config map[string]string)

func LoadConfig

func LoadConfig(log *logrus.Logger) (err error)

LoadConfig loads the calico-vpp-agent configuration from the environment

func PrintAgentConfig

func PrintAgentConfig(log *logrus.Logger)

func WaitForFelixConfig

func WaitForFelixConfig()

Types

This section is empty.

Jump to

Keyboard shortcuts

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