Documentation ¶
Index ¶
- func LoadVppConfig(conf *types.NetConf, args *skel.CmdArgs, data *VppSavedData) error
- func SaveVppConfig(conf *types.NetConf, args *skel.CmdArgs, data *VppSavedData) error
- type CniVpp
- func (cniVpp CniVpp) AddOnContainer(conf *types.NetConf, args *skel.CmdArgs, kubeClient kubernetes.Interface, ...) (*v1.Pod, error)
- func (cniVpp CniVpp) AddOnHost(conf *types.NetConf, args *skel.CmdArgs, kubeClient kubernetes.Interface, ...) error
- func (cniVpp CniVpp) DelFromContainer(conf *types.NetConf, args *skel.CmdArgs, sharedDir string, pod *v1.Pod) error
- func (cniVpp CniVpp) DelFromHost(conf *types.NetConf, args *skel.CmdArgs, sharedDir string) error
- type VppSavedData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadVppConfig ¶
func SaveVppConfig ¶
saveVppConfig() - Some data needs to be saved, like the swIfIndex, for cmdDel().
This function squirrels the data away to be retrieved later.
Types ¶
type CniVpp ¶
type CniVpp struct { }
Types
func (CniVpp) AddOnContainer ¶
func (CniVpp) AddOnHost ¶
func (cniVpp CniVpp) AddOnHost(conf *types.NetConf, args *skel.CmdArgs, kubeClient kubernetes.Interface, sharedDir string, ipResult *current.Result) error
API Functions
func (CniVpp) DelFromContainer ¶
type VppSavedData ¶
type VppSavedData struct { InterfaceSwIfIndex interface_types.InterfaceIndex `json:"swIfIndex"` // Software Index, used to access the created interface, needed to delete interface. MemifSocketId uint32 `json:"memifSocketId"` // Memif SocketId, used to access the created memif Socket File, used for debug only. }
This structure is a union of all the VPP data (for all types of interfaces) that need to be preserved for later use.
Directories ¶
Path | Synopsis |
---|---|
api
|
|
bridge
Binary simple-client is an example VPP management application that exercises the govpp API on real-world use-cases.
|
Binary simple-client is an example VPP management application that exercises the govpp API on real-world use-cases. |
infra
Binary simple-client is an example VPP management application that exercises the govpp API on real-world use-cases.
|
Binary simple-client is an example VPP management application that exercises the govpp API on real-world use-cases. |
interface
Binary simple-client is an example VPP management application that exercises the govpp API on real-world use-cases.
|
Binary simple-client is an example VPP management application that exercises the govpp API on real-world use-cases. |
memif
Binary simple-client is an example VPP management application that exercises the govpp API on real-world use-cases.
|
Binary simple-client is an example VPP management application that exercises the govpp API on real-world use-cases. |
vhostuser
Binary simple-client is an example VPP management application that exercises the govpp API on real-world use-cases.
|
Binary simple-client is an example VPP management application that exercises the govpp API on real-world use-cases. |
test
|
|
ipAddDel
Binary simple-client is an example VPP management application that exercises the govpp API on real-world use-cases.
|
Binary simple-client is an example VPP management application that exercises the govpp API on real-world use-cases. |
memifAddDel
Binary simple-client is an example VPP management application that exercises the govpp API on real-world use-cases.
|
Binary simple-client is an example VPP management application that exercises the govpp API on real-world use-cases. |
vhostUserAddDel
Binary simple-client is an example VPP management application that exercises the govpp API on real-world use-cases.
|
Binary simple-client is an example VPP management application that exercises the govpp API on real-world use-cases. |
Click to show internal directories.
Click to hide internal directories.