Documentation
¶
Index ¶
Constants ¶
View Source
const ( // L2DriverMode represents the supported Networking driver mode for Layer 2 networking. L2DriverMode = "layer2" // BESS controls the configuration value for selecting BESS as a the data plane driver. BESS = "BESS" // BessDefaultPort is the default port configuration value to use for connecting to the BESS data plane BessDefaultPort = 10514 // NimbessAgentPort is the default port that the Agent process will listen on NimbessAgentPort = 9111 )
Variables ¶
View Source
var SupportedForwarders = [...]string{L2DriverMode}
SupportedForwarders contains a list of the supported core packet forwarder types
Functions ¶
This section is empty.
Types ¶
type Network ¶
type Network struct { Driver string `mapstructure:"driver"` MacLearn bool `mapstructure:"mac_learning"` TunnelMode bool `mapstructure:"tunnel_mode"` FIBSize int64 `mapstructure:"fib_size"` }
Network contains the Nimbess Agent Network specific configuration.
type NimbessConfig ¶
type NimbessConfig struct { Kubeconfig string `mapstructure:"kubeconfig"` ResyncPeriod int64 `mapstructure:"resync_period"` EtcdEndpoints string `mapstructure:"etcd_endpoints"` EtcdDialTimeout time.Duration `mapstructure:"etcd_timeout"` Port int `mapstructure:"agent_port"` DataPlane string `mapstructure:"data_plane"` DataPlanePort int `mapstructure:"data_plane_port"` WorkerCores []int64 `mapstructure:"worker_cores"` KernelIF string `mapstructure:"kernel_interface"` FastPathIF string `mapstructure:"high_speed_interface"` Network }
NimbessConfig contains the generic Nimbess Agent configuration.
func InitConfig ¶
func InitConfig(cfgPath string) *NimbessConfig
InitConfig loads Nimbess Agent config file into a configuration struct. It returns a parsed Nimbess Configuration from a config file location.
Click to show internal directories.
Click to hide internal directories.