Documentation ¶
Index ¶
Constants ¶
View Source
const ( NodeNameEnvVar = "NODENAME" ServicePrefixEnvVar = "SERVICE_PREFIX" /* Configuration source. Only linux (aka read from $CALICOVPP_INTERFACE) is supported for now */ IpConfigEnvVar = "CALICOVPP_IP_CONFIG" /* linux name of the uplink interface to be used by VPP */ InterfaceEnvVar = "CALICOVPP_INTERFACE" /* Driver to consume the uplink with. Leave empty for autoconf */ NativeDriverEnvVar = "CALICOVPP_NATIVE_DRIVER" /* Bash template hook points at several points in the VPP lifecycle. See hook/hooks.go */ BashHookEnvVarPrefix = "CALICOVPP_HOOK_" /* Bash script template run before getting config from $CALICOVPP_INTERFACE (same as CALICOVPP_HOOK_BEFORE_IF_READ)*/ InitScriptTemplateEnvVar = "CALICOVPP_INIT_SCRIPT_TEMPLATE" /* Template for VppConfigFile (/etc/vpp/startup.conf) It contains the VPP startup configuration */ ConfigTemplateEnvVar = "CALICOVPP_CONFIG_TEMPLATE" /* Template for VppConfigExecFile (/etc/vpp/startup.exec) It contains the CLI to be executed in vppctl after startup */ ConfigExecTemplateEnvVar = "CALICOVPP_CONFIG_EXEC_TEMPLATE" /* "interrupt" "adaptive" or "polling" mode for uplink & tap interfaces */ RxModeEnvVar = "CALICOVPP_RX_MODE" TapRxModeEnvVar = "CALICOVPP_TAP_RX_MODE" /* Number of rx queues to use for the uplink interface in VPP */ NumRxQueuesEnvVar = "CALICOVPP_RX_QUEUES" /* Set the pattern for VPP corefiles. Usually "/var/lib/vpp/vppcore.%e.%p" */ CorePatternEnvVar = "CALICOVPP_CORE_PATTERN" /* Queue size (either "1024" or "1024,512" for rx,tx) for the tap/the uplink */ TapRingSizeEnvVar = "CALICOVPP_TAP_RING_SIZE" RingSizeEnvVar = "CALICOVPP_RING_SIZE" /* Comma separated list of IPs to be configured in VPP as default GW */ DefaultGWEnvVar = "CALICOVPP_DEFAULT_GW" /* User specified MTU for uplink & the tap */ UserSpecifiedMtuEnvVar = "CALICOVPP_TAP_MTU" IfConfigPathEnvVar = "CALICOVPP_IF_CONFIG_PATH" VppStartupSleepEnvVar = "CALICOVPP_VPP_STARTUP_SLEEP" ExtraAddrCountEnvVar = "CALICOVPP_CONFIGURE_EXTRA_ADDRESSES" SwapDriverEnvVar = "CALICOVPP_SWAP_DRIVER" EnableGSOEnvVar = "CALICOVPP_DEBUG_ENABLE_GSO" )
View Source
const ( DefaultTapQueueSize = 1024 DefaultPhyQueueSize = 1024 DefaultNumRxQueues = 1 )
Variables ¶
This section is empty.
Functions ¶
func GetVppManagerParams ¶
func GetVppManagerParams() (params *config.VppManagerParams)
func PrepareConfiguration ¶
func PrepareConfiguration(params *config.VppManagerParams) (conf *config.InterfaceConfig)
func PrintVppManagerConfig ¶
func PrintVppManagerConfig(params *config.VppManagerParams, conf *config.InterfaceConfig)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.