networking

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NeutronErrTypeDBObjectDuplicateEntry = "NeutronDbObjectDuplicateEntry"
	NeutronErrIPAddressGenerationFailure = "IpAddressGenerationFailure"
	NeutronErrExternalIPAddressExhausted = "ExternalIpAddressExhausted"
)
View Source
const (
	NeutronSDN      = "neutron"
	SprutSDN        = "sprut"
	SearchInAllSDNs = "all"
	DefaultSDN      = NeutronSDN
)

Variables

This section is empty.

Functions

func CreateResourceWithRetry added in v0.8.2

func CreateResourceWithRetry(ctx context.Context, createFunc func() error, retryableErrors []ExpectedNeutronError,
	creationRetriesNum int, creationRetryDelay time.Duration, creationTimeout time.Duration) error

func GetAvailableSDNs added in v0.7.4

func GetAvailableSDNs(c *gophercloud.ServiceClient) ([]string, error)

func RetryNeutronError added in v0.8.2

func RetryNeutronError(actual error, retryableErrors []ExpectedNeutronError, retryUnknown bool) bool

func SelectSDN

func SelectSDN(c *gophercloud.ServiceClient, sdn string) error

Types

type ExpectedNeutronError added in v0.8.2

type ExpectedNeutronError struct {
	ErrCode int
	ErrType string
}

type NeutronError added in v0.8.2

type NeutronError struct {
	Message string `json:"message"`
	Type    string `json:"type"`
	Detail  string `json:"detail"`
}

func DecodeNeutronError added in v0.8.2

func DecodeNeutronError(body []byte) (*NeutronError, error)

type SDNExt added in v0.5.1

type SDNExt struct {
	SDN string `json:"sdn"`
}

Directories

Path Synopsis
v2

Jump to

Keyboard shortcuts

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