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.
Click to show internal directories.
Click to hide internal directories.