Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPlugin = *NewPlugin()
DefaultPlugin is a default instance of IfPlugin.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { // GetInterfaceIndex gives read-only access to map with metadata of all configured // linux interfaces. GetInterfaceIndex() ifaceidx.LinuxIfMetadataIndex }
API defines methods exposed by Linux-IfPlugin.
type Config ¶
type Config struct {
Disabled bool `json:"disabled"`
}
Config holds the ifplugin configuration.
type Deps ¶
type Deps struct { infra.PluginDeps ServiceLabel servicelabel.ReaderAPI Scheduler scheduler.KVScheduler NsPlugin nsplugin.API VppIfPlugin descriptor.VPPIfPluginAPI /* mandatory if TAP_TO_VPP interfaces are used */ }
Deps lists dependencies of the interface plugin.
type IfPlugin ¶
type IfPlugin struct { Deps // contains filtered or unexported fields }
IfPlugin configures Linux VETH and TAP interfaces using Netlink API.
func (*IfPlugin) GetInterfaceIndex ¶
func (p *IfPlugin) GetInterfaceIndex() ifaceidx.LinuxIfMetadataIndex
GetInterfaceIndex gives read-only access to map with metadata of all configured linux interfaces.
Directories ¶
Path | Synopsis |
---|---|
Package ifaceidx implements name-to-index mapping for Linux interfaces.
|
Package ifaceidx implements name-to-index mapping for Linux interfaces. |
Package linuxcalls contains wrappers over Netlink APIs related to Linux VETH interfaces or Linux interfaces in general.
|
Package linuxcalls contains wrappers over Netlink APIs related to Linux VETH interfaces or Linux interfaces in general. |
Click to show internal directories.
Click to hide internal directories.