Documentation ¶
Index ¶
- func CreateExternalRouter(t *testing.T, client *gophercloud.ServiceClient) (*routers.Router, error)
- func CreateFloatingIP(t *testing.T, client *gophercloud.ServiceClient, networkID, portID string) (*floatingips.FloatingIP, error)
- func CreateRouter(t *testing.T, client *gophercloud.ServiceClient, networkID string) (*routers.Router, error)
- func CreateRouterInterface(t *testing.T, client *gophercloud.ServiceClient, portID, routerID string) (*routers.InterfaceInfo, error)
- func DeleteFloatingIP(t *testing.T, client *gophercloud.ServiceClient, floatingIPID string)
- func DeleteRouter(t *testing.T, client *gophercloud.ServiceClient, routerID string)
- func DeleteRouterInterface(t *testing.T, client *gophercloud.ServiceClient, portID, routerID string)
- func WaitForRouterInterfaceToAttach(client *gophercloud.ServiceClient, routerInterfaceID string, secs int) error
- func WaitForRouterInterfaceToDetach(client *gophercloud.ServiceClient, routerInterfaceID string, secs int) error
- func WaitForRouterToCreate(client *gophercloud.ServiceClient, routerID string, secs int) error
- func WaitForRouterToDelete(client *gophercloud.ServiceClient, routerID string, secs int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateExternalRouter ¶
func CreateExternalRouter(t *testing.T, client *gophercloud.ServiceClient) (*routers.Router, error)
CreateExternalRouter creates a router on the external network. This requires the OS_EXTGW_ID environment variable to be set. An error is returned if the creation failed.
func CreateFloatingIP ¶
func CreateFloatingIP(t *testing.T, client *gophercloud.ServiceClient, networkID, portID string) (*floatingips.FloatingIP, error)
CreateFloatingIP creates a floating IP on a given network and port. An error will be returned if the creation failed.
func CreateRouter ¶
func CreateRouter(t *testing.T, client *gophercloud.ServiceClient, networkID string) (*routers.Router, error)
CreateRouter creates a router on a specified Network ID. An error will be returned if the creation failed.
func CreateRouterInterface ¶
func CreateRouterInterface(t *testing.T, client *gophercloud.ServiceClient, portID, routerID string) (*routers.InterfaceInfo, error)
CreateRouterInterface will attach a subnet to a router. An error will be returned if the operation fails.
func DeleteFloatingIP ¶
func DeleteFloatingIP(t *testing.T, client *gophercloud.ServiceClient, floatingIPID string)
DeleteFloatingIP deletes a floatingIP of a specified ID. A fatal error will occur if the deletion failed. This works best when used as a deferred function.
func DeleteRouter ¶
func DeleteRouter(t *testing.T, client *gophercloud.ServiceClient, routerID string)
DeleteRouter deletes a router of a specified ID. A fatal error will occur if the deletion failed. This works best when used as a deferred function.
func DeleteRouterInterface ¶
func DeleteRouterInterface(t *testing.T, client *gophercloud.ServiceClient, portID, routerID string)
DeleteRouterInterface will detach a subnet to a router. A fatal error will occur if the deletion failed. This works best when used as a deferred function.
func WaitForRouterInterfaceToAttach ¶
func WaitForRouterInterfaceToAttach(client *gophercloud.ServiceClient, routerInterfaceID string, secs int) error
func WaitForRouterInterfaceToDetach ¶
func WaitForRouterInterfaceToDetach(client *gophercloud.ServiceClient, routerInterfaceID string, secs int) error
func WaitForRouterToCreate ¶
func WaitForRouterToCreate(client *gophercloud.ServiceClient, routerID string, secs int) error
func WaitForRouterToDelete ¶
func WaitForRouterToDelete(client *gophercloud.ServiceClient, routerID string, secs int) error
Types ¶
This section is empty.