util

package
v0.0.0-...-f17bbf1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2018 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateVETHPair

func CreateVETHPair(portList []string) error

CreateVETHPair will help user create veth pairs to associate with a VM or a Container

func DeleteVETHPair

func DeleteVETHPair(entityPort string, brPort string) error

DeleteVETHPair will help user delete veth pairs on VRS

func EnableOVSDBRPCSocket

func EnableOVSDBRPCSocket(port int) error

EnableOVSDBRPCSocket will add an interface to the ovsdb-server to make it accept RPCs via TCP socket

func FetchAllPorts

func FetchAllPorts(zone *vspk.Zone) (vspk.VPortsList, *bambou.Error)

FetchAllPorts fetches all port objects

func FetchDomain

func FetchDomain(enterprise *vspk.Enterprise, vsdDomain string) (*vspk.Domain, *bambou.Error)

FetchDomain fetches domain object

func FetchEnterprise

func FetchEnterprise(root *vspk.Me, vsdEnterprise string) (*vspk.Enterprise, *bambou.Error)

FetchEnterprise fetches enterprise object

func FetchSubnet

func FetchSubnet(domain *vspk.Domain, vsdSubnet string) (*vspk.Subnet, *bambou.Error)

FetchSubnete fetches subnet object

func FetchZone

func FetchZone(domain *vspk.Domain, vsdZone string) (*vspk.Zone, *bambou.Error)

FetchZone fetches zone object

func GenerateMAC

func GenerateMAC() string

GenerateMAC will act as a pseudo random MAC generator

func SplitUUIDString

func SplitUUIDString(uuid string) string

SplitUUIDString will hep extract UUID string obtained from Port table

func VerifyVSDPortDeletion

func VerifyVSDPortDeletion(root *vspk.Me, vsdEnterprise string, vsdDomain string, vsdZone string, vsdPort string) (bool, *bambou.Error)

VerifyVSDPortDeletion will verify if the given port is removed from VSD or not

func VerifyVSDPortResolution

func VerifyVSDPortResolution(root *vspk.Me, vsdEnterprise string, vsdDomain string, vsdZone string, vsdPort string) (string, *bambou.Error)

VerifyVSDPortResolution will verify if the given port is present on VSD. If yes, returns the IP

Types

This section is empty.

Jump to

Keyboard shortcuts

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