Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/iaasalpha/attach_nic/attach_nic.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func main() {
// Attach an existing network interface to an existing server
var httpResp *http.Response
ctxWithHTTPResp := runtime.WithCaptureHTTPResponse(context.Background(), &httpResp)
err = iaasalphaClient.AddNICToServer(ctxWithHTTPResp, projectId, serverId, nicId).Execute()
err = iaasalphaClient.AddNicToServer(ctxWithHTTPResp, projectId, serverId, nicId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "[iaasalpha API] Error when calling `AddNICToServer`: %v\n", err)
} else {
Expand All @@ -47,7 +47,7 @@ func main() {

fmt.Printf("[iaasalpha API] Nic %q has been successfully attached to the server %s.\n", nicId, serverId)

err = iaasalphaClient.RemoveNICFromServer(ctxWithHTTPResp, projectId, serverId, nicId).Execute()
err = iaasalphaClient.RemoveNicFromServer(ctxWithHTTPResp, projectId, serverId, nicId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "[iaasalpha API] Error when calling `RemoveNICFromServer`: %v\n", err)
} else {
Expand Down
Loading
Loading