v2

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNetwork

func CreateNetwork(t *testing.T, client *gophercloud.ServiceClient) (*networks.Network, error)

CreateNetwork will create basic network. An error will be returned if the network could not be created.

func CreatePort

func CreatePort(t *testing.T, client *gophercloud.ServiceClient, networkID, subnetID string) (*ports.Port, error)

CreatePort will create a port on the specified subnet. An error will be returned if the port could not be created.

func CreatePortWithNoSecurityGroup

func CreatePortWithNoSecurityGroup(t *testing.T, client *gophercloud.ServiceClient, networkID, subnetID string) (*ports.Port, error)

CreatePortWithNoSecurityGroup will create a port with no security group attached. An error will be returned if the port could not be created.

func CreateSubnet

func CreateSubnet(t *testing.T, client *gophercloud.ServiceClient, networkID string) (*subnets.Subnet, error)

CreateSubnet will create a subnet on the specified Network ID. An error will be returned if the subnet could not be created.

func CreateSubnetWithDefaultGateway

func CreateSubnetWithDefaultGateway(t *testing.T, client *gophercloud.ServiceClient, networkID string) (*subnets.Subnet, error)

CreateSubnetWithDefaultGateway will create a subnet on the specified Network ID and have Neutron set the gateway by default An error will be returned if the subnet could not be created.

func CreateSubnetWithNoGateway

func CreateSubnetWithNoGateway(t *testing.T, client *gophercloud.ServiceClient, networkID string) (*subnets.Subnet, error)

CreateSubnetWithNoGateway will create a subnet with no gateway on the specified Network ID. An error will be returned if the subnet could not be created.

func DeleteNetwork

func DeleteNetwork(t *testing.T, client *gophercloud.ServiceClient, networkID string)

DeleteNetwork will delete a network with a specified ID. A fatal error will occur if the delete was not successful. This works best when used as a deferred function.

func DeletePort

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

DeletePort will delete a port with a specified ID. A fatal error will occur if the delete was not successful. This works best when used as a deferred function.

func DeleteSubnet

func DeleteSubnet(t *testing.T, client *gophercloud.ServiceClient, subnetID string)

DeleteSubnet will delete a subnet with a specified ID. A fatal error will occur if the delete was not successful. This works best when used as a deferred function.

func WaitForPortToCreate

func WaitForPortToCreate(client *gophercloud.ServiceClient, portID string, secs int) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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