Documentation ¶
Index ¶
- func CreateNetwork(t *testing.T, client *gophercloud.ServiceClient) (*networks.Network, error)
- func CreateNetworkWithoutPortSecurity(t *testing.T, client *gophercloud.ServiceClient) (*networks.Network, error)
- func CreatePort(t *testing.T, client *gophercloud.ServiceClient, networkID, subnetID string) (*ports.Port, error)
- func CreatePortWithMultipleFixedIPs(t *testing.T, client *gophercloud.ServiceClient, networkID, subnetID string) (*ports.Port, error)
- func CreatePortWithNoSecurityGroup(t *testing.T, client *gophercloud.ServiceClient, networkID, subnetID string) (*ports.Port, error)
- func CreatePortWithoutPortSecurity(t *testing.T, client *gophercloud.ServiceClient, networkID, subnetID string) (*ports.Port, error)
- func CreateSubnet(t *testing.T, client *gophercloud.ServiceClient, networkID string) (*subnets.Subnet, error)
- func CreateSubnetWithDefaultGateway(t *testing.T, client *gophercloud.ServiceClient, networkID string) (*subnets.Subnet, error)
- func CreateSubnetWithNoGateway(t *testing.T, client *gophercloud.ServiceClient, networkID string) (*subnets.Subnet, error)
- func CreateSubnetWithSubnetPool(t *testing.T, client *gophercloud.ServiceClient, networkID string, ...) (*subnets.Subnet, error)
- func CreateSubnetWithSubnetPoolNoCIDR(t *testing.T, client *gophercloud.ServiceClient, networkID string, ...) (*subnets.Subnet, error)
- func CreateSubnetWithSubnetPoolPrefixlen(t *testing.T, client *gophercloud.ServiceClient, networkID string, ...) (*subnets.Subnet, error)
- func DeleteNetwork(t *testing.T, client *gophercloud.ServiceClient, networkID string)
- func DeletePort(t *testing.T, client *gophercloud.ServiceClient, portID string)
- func DeleteSubnet(t *testing.T, client *gophercloud.ServiceClient, subnetID string)
- func IDFromName(client *gophercloud.ServiceClient, name string) (string, error)
- func WaitForPortToCreate(client *gophercloud.ServiceClient, portID string) error
- type PortWithExtraDHCPOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNetwork ¶
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 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 ¶
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 ¶
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 ¶
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 ¶
This is duplicated from https://github.com/gophercloud/utils so that Gophercloud "core" doesn't have a dependency on the complementary utils repository.
func WaitForPortToCreate ¶
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.