Documentation ¶
Index ¶
- func CreateNetwork(t *testing.T, client *gophercloud.ServiceClient) (*networks.Network, error)
- func CreatePort(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 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 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 WaitForPortToCreate(client *gophercloud.ServiceClient, portID string, secs int) error
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.