types

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedNetConf

type CachedNetConf struct {
	Netconf    *NetConf
	OrigIfName string
}

CachedNetConf containing NetConfig and original smartnic vf interface name (set only in case of ovs hareware offload scenario). this is intended to be used only for storing and retrieving config to/from a data store (example file cache).

type CachedPrevResultNetConf added in v0.28.0

type CachedPrevResultNetConf struct {
	PrevResult *current.Result
}

CachedPrevResultNetConf containing PrevResult. this is intended to be used only for storing and retrieving config to/from a data store (example file cache). This is required with CNI spec < 0.4.0 (like 0.3.0 and 0.3.1), because prevResult wasn't available in cmdDel on those versions.

type Mirror added in v0.28.0

type Mirror struct {
	Name    string `json:"name"`
	Ingress bool   `json:"ingress,omitempty"`
	Egress  bool   `json:"egress,omitempty"`
}

Mirror configuration

type MirrorNetConf added in v0.28.0

type MirrorNetConf struct {
	types.NetConf

	// support chaining for master interface and IP decisions
	// occurring prior to running mirror plugin
	RawPrevResult *map[string]interface{} `json:"prevResult"`
	PrevResult    *current.Result         `json:"-"`

	BrName            string    `json:"bridge,omitempty"`
	ConfigurationPath string    `json:"configuration_path"`
	SocketFile        string    `json:"socket_file"`
	Mirrors           []*Mirror `json:"mirrors"`
}

MirrorNetConf extends types.NetConf for ovs-mirrors

type NetConf

type NetConf struct {
	types.NetConf
	BrName                 string   `json:"bridge,omitempty"`
	VlanTag                *uint    `json:"vlan"`
	MTU                    int      `json:"mtu"`
	Trunk                  []*Trunk `json:"trunk,omitempty"`
	DeviceID               string   `json:"deviceID"`       // PCI address of a VF in valid sysfs format
	OfportRequest          uint     `json:"ofport_request"` // OpenFlow port number in range 1 to 65,279
	InterfaceType          string   `json:"interface_type"` // The type of interface on ovs.
	ConfigurationPath      string   `json:"configuration_path"`
	SocketFile             string   `json:"socket_file"`
	LinkStateCheckRetries  int      `json:"link_state_check_retries"`
	LinkStateCheckInterval int      `json:"link_state_check_interval"`
}

NetConf extends types.NetConf for ovs-cni

type NetConfs added in v0.28.0

type NetConfs interface {
	NetConf | MirrorNetConf
}

NetConfs can be either NetConf or MirrorNetConf

type Trunk

type Trunk struct {
	MinID *uint `json:"minID,omitempty"`
	MaxID *uint `json:"maxID,omitempty"`
	ID    *uint `json:"id,omitempty"`
}

Trunk containing selective vlan IDs

Jump to

Keyboard shortcuts

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