Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HardwareProfile ¶ added in v0.5.1
type HardwareProfile struct {
// FECModes configures the support FECMode for a given speed and lanes combination.
FECModes []*FECMode `yaml:"fec_modes"`
}
HardwareProfile is the "hardware" like config options.
type Option ¶
Option exposes additional configuration for the dataplane.
func WithAddrPort ¶
WithAddrPort sets the address of the dataplane gRPC server Default: 127.0.0.1:0
func WithHardwareProfile ¶ added in v0.5.1
WithHardwareProfile sets location of the hardware profile config
func WithHostifNetDevPortType ¶
WithHostifNetDevPortType sets the lucius port type for saipb hostif NETDEV. Default: fwdpb.PortType_PORT_TYPE_TAP
func WithPortType ¶
WithPortType sets the lucius port type for saipb ports. Default: fwdpb.PortType_PORT_TYPE_KERNEL
func WithReconcilation ¶
WithReconcilation enables the gNMI reconcilation. Default: true
func WithSkipIPValidation ¶ added in v0.6.0
func WithSkipIPValidation() Option
type Options ¶
type Options struct {
// AddrPort is the address of the gRPC server.
AddrPort string
// Reconcilation enabes gNMI reconcilation.
Reconcilation bool
// HostifNetDevType is the fwdpb type for the saipb hostif netdev types.
HostifNetDevType fwdpb.PortType
// PortType is the fwdpb type for the port type.
PortType fwdpb.PortType
// HardwareProfile is the "hardware" like config options.
HardwareProfile *HardwareProfile
// SkipIPValidation skips droping packets with invalid src or dst IPs.
SkipIPValidation bool
}
Options configures the dataplane
func ResolveOpts ¶
ResolveOpts creates an option struct from the opts.
Click to show internal directories.
Click to hide internal directories.