v2

package
v0.0.0-...-74db0f9 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2018 License: Apache-2.0 Imports: 9 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 CreateNetworkWithoutPortSecurity

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

CreateNetworkWithoutPortSecurity will create a network without port security. 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 CreatePortWithoutPortSecurity

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

CreatePortWithoutPortSecurity will create a port without port security on the specified subnet. 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 CreateSubnetWithSubnetPool

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

CreateSubnetWithSubnetPool will create a subnet associated with the provided subnetpool on the specified Network ID. An error will be returned if the subnet or the subnetpool 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

type PortWithExtraDHCPOpts

type PortWithExtraDHCPOpts struct {
	ports.Port
	extradhcpopts.ExtraDHCPOptsExt
}

PortWithExtraDHCPOpts represents a port with extra DHCP options configuration.

func CreatePortWithExtraDHCPOpts

func CreatePortWithExtraDHCPOpts(t *testing.T, client *gophercloud.ServiceClient, networkID, subnetID string) (*PortWithExtraDHCPOpts, error)

CreatePortWithExtraDHCPOpts will create a port with DHCP options on the specified subnet. An error will be returned if the port could not be created.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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