Documentation ¶
Overview ¶
Package resetnetwork provides functionality to reset the network of a server that has been provisioned by the OpenStack Compute service. This action requires admin privileges and Nova configured with a Xen hypervisor driver.
Example to Reset a Network of a Server
serverID := "47b6b7b7-568d-40e4-868c-d5c41735532e" err := resetnetwork.ResetNetwork(client, id).ExtractErr() if err != nil { panic(err) }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResetResult ¶
type ResetResult struct {
gophercloud.ErrResult
}
ResetResult is the response of a ResetNetwork operation. Call its ExtractErr method to determine if the request suceeded or failed.
func ResetNetwork ¶
func ResetNetwork(client *gophercloud.ServiceClient, id string) (r ResetResult)
ResetNetwork will reset the network of a server
Click to show internal directories.
Click to hide internal directories.