Help us shape the future of Go! Take the 2026 Go Developer Survey

layer3

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateExternalRouter

func CreateExternalRouter(t *testing.T, client *gophercloud.ServiceClient) (*routers.Router, error)

CreateExternalRouter creates a router on the external network. This requires the OS_EXTGW_ID environment variable to be set. An error is returned if the creation failed.

func CreateFloatingIP

func CreateFloatingIP(t *testing.T, client *gophercloud.ServiceClient, networkID, portID string) (*floatingips.FloatingIP, error)

CreateFloatingIP creates a floating IP on a given network and port. An error will be returned if the creation failed.

func CreateRouter

func CreateRouter(t *testing.T, client *gophercloud.ServiceClient, networkID string) (*routers.Router, error)

CreateRouter creates a router on a specified Network ID. An error will be returned if the creation failed.

func CreateRouterInterface

func CreateRouterInterface(t *testing.T, client *gophercloud.ServiceClient, portID, routerID string) (*routers.InterfaceInfo, error)

CreateRouterInterface will attach a subnet to a router. An error will be returned if the operation fails.

func DeleteFloatingIP

func DeleteFloatingIP(t *testing.T, client *gophercloud.ServiceClient, floatingIPID string)

DeleteFloatingIP deletes a floatingIP of a specified ID. A fatal error will occur if the deletion failed. This works best when used as a deferred function.

func DeleteRouter

func DeleteRouter(t *testing.T, client *gophercloud.ServiceClient, routerID string)

DeleteRouter deletes a router of a specified ID. A fatal error will occur if the deletion failed. This works best when used as a deferred function.

func DeleteRouterInterface

func DeleteRouterInterface(t *testing.T, client *gophercloud.ServiceClient, portID, routerID string)

DeleteRouterInterface will detach a subnet to a router. A fatal error will occur if the deletion failed. This works best when used as a deferred function.

func WaitForRouterInterfaceToAttach

func WaitForRouterInterfaceToAttach(client *gophercloud.ServiceClient, routerInterfaceID string, secs int) error

func WaitForRouterInterfaceToDetach

func WaitForRouterInterfaceToDetach(client *gophercloud.ServiceClient, routerInterfaceID string, secs int) error

func WaitForRouterToCreate

func WaitForRouterToCreate(client *gophercloud.ServiceClient, routerID string, secs int) error

func WaitForRouterToDelete

func WaitForRouterToDelete(client *gophercloud.ServiceClient, routerID string, secs int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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