ovsdb

package
v0.0.0-...-b15e717 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(conf *usrsptypes.NetConf, containerID string, data *OvsSavedData) error

func SaveConfig

func SaveConfig(conf *usrsptypes.NetConf, containerID string, data *OvsSavedData) error

SaveConfig() - Some data needs to be saved for cmdDel().

This function squirrels the data away to be retrieved later.

Types

type OvsSavedData

type OvsSavedData struct {
	Vhostname string `json:"vhostname"` // Vhost Port name
	VhostMac  string `json:"vhostmac"`  // Vhost port MAC address
	Ifname    string `json:"ifname"`    // Interface name
	IfMac     string `json:"ifmac"`     // Interface Mac address
}

This structure is a union of all the VPP data (for all types of interfaces) that need to be preserved for later use.

Jump to

Keyboard shortcuts

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