resetnetwork

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

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

Jump to

Keyboard shortcuts

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