v2

package
v1.1.31 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 10 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 CreatePortWithMultipleFixedIPs

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

CreatePortWithMultipleFixedIPs will create a port with two FixedIPs 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 CreateSubnetWithServiceTypes

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

CreateSubnet will create a subnet on the specified Network ID and service types.

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 CreateSubnetWithSubnetPoolNoCIDR

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

CreateSubnetWithSubnetPoolNoCIDR 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 CreateSubnetWithSubnetPoolPrefixlen

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

CreateSubnetWithSubnetPoolPrefixlen will create a subnet associated with the provided subnetpool on the specified Network ID and with overwritten prefixlen instead of the default subnetpool prefixlen. 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 IDFromName

func IDFromName(client *gophercloud.ServiceClient, name string) (string, error)

This is duplicated from https://github.com/bizflycloud/utils so that Gophercloud "core" doesn't have a dependency on the complementary utils repository.

func WaitForPortToCreate

func WaitForPortToCreate(client *gophercloud.ServiceClient, portID string) 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
agents
agents acceptance tests
agents acceptance tests
bgp/peers
BGP Peer acceptance tests
BGP Peer acceptance tests
bgp/speakers
BGP Peer acceptance tests
BGP Peer acceptance tests
dns
mtu

Jump to

Keyboard shortcuts

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