layer3

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAddressScope

func CreateAddressScope(t *testing.T, client *gophercloud.ServiceClient) (*addressscopes.AddressScope, error)

CreateAddressScope will create an address-scope. An error will be returned if the address-scope could not be created.

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 CreateFloatingIPWithFixedIP

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

CreateFloatingIPWithFixedIP creates a floating IP on a given network and port with a defined fixed IP. An error will be returned if the creation failed.

func CreatePortForwarding

func CreatePortForwarding(t *testing.T, client *gophercloud.ServiceClient, fipID string, portID string, portFixedIPs []ports.IP) (*portforwarding.PortForwarding, error)

CreatePortForwarding creates a port forwarding for a given floating IP 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 CreateRouterInterfaceOnSubnet

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

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

func DeleteAddressScope

func DeleteAddressScope(t *testing.T, client *gophercloud.ServiceClient, addressScopeID string)

DeleteAddressScope will delete an address-scope with the specified ID. A fatal error will occur if the delete was not successful.

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 DeletePortForwarding

func DeletePortForwarding(t *testing.T, client *gophercloud.ServiceClient, fipID string, pfID string)

DeletePortForwarding deletes a Port Forwarding with a given ID and a given floating IP ID. A fatal error is returned if the deletion fails. Works best 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) error

func WaitForRouterInterfaceToDetach

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

func WaitForRouterToCreate

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

func WaitForRouterToDelete

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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