overlay

package
v0.0.0-...-f149185 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureHost

func ConfigureHost(osClient utils.OpenStackClient, host Host, vmConfiguration models.VMConfiguration) *models.VM

func ConfigureSwitch

func ConfigureSwitch(osClient utils.OpenStackClient, sw Switch, vmConfiguration models.VMConfiguration) *models.VM

func DeployVNFs

func DeployVNFs(overlayObj Overlay, vnfs map[string]interface{}) error

func ExtractHosts

func ExtractHosts(overlay map[string]interface{}) map[string]Host

func ExtractSWs

func ExtractSWs(overlay map[string]interface{}) map[string]Switch

func FixConnectionFormat

func FixConnectionFormat(connection interface{}) map[string]string

Types

type Host

type Host struct {
	Gateway   bool
	OverlayIP string
	Name      string
}

type Overlay

type Overlay struct {
	Hosts        map[string]Host
	Switches     map[string]Switch
	OsClient     *utils.OpenStackClient
	ConsulClient *utils.ConsulClient
	// contains filtered or unexported fields
}

func NewOverlay

func NewOverlay(overlayObject map[string]interface{}, ryuClient *utils.RyuClient, osClient *utils.OpenStackClient, consulClient *utils.ConsulClient) *Overlay

func (*Overlay) DeployOverlay

func (overlayObj *Overlay) DeployOverlay(osClient utils.OpenStackClient, overlay map[string]interface{}, vmConfiguration models.VMConfiguration, ctrlEndpoint string)

func (*Overlay) GetGateway

func (overlay *Overlay) GetGateway() Host

func (*Overlay) SetupOpenFlowRules

func (overlay *Overlay) SetupOpenFlowRules(rule utils.Rule, src string, dst string) error

func (*Overlay) UninstallOpenFlowRules

func (overlay *Overlay) UninstallOpenFlowRules(rule utils.Rule, src string, dst string) error

type Switch

type Switch struct {
	Name string
}

Jump to

Keyboard shortcuts

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