cmd: Use the proper packet.net go bindings again

The support for always PXE has been merged.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer 2017-08-15 13:12:10 +01:00
parent 629b24246c
commit 33e8afb292
18 changed files with 13 additions and 11 deletions

View File

@ -13,7 +13,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/bzub/packngo" // TODO(rn): Update to official once iPXE is merged "github.com/packethost/packngo"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/agent" "golang.org/x/crypto/ssh/agent"

View File

@ -13,6 +13,7 @@ github.com/gophercloud/gophercloud 2804b72cf099b41d2e25c8afcca786f9f962ddee
github.com/jmespath/go-jmespath bd40a432e4c76585ef6b72d3fd96fb9b6dc7b68d github.com/jmespath/go-jmespath bd40a432e4c76585ef6b72d3fd96fb9b6dc7b68d
github.com/mitchellh/go-ps 4fdf99ab29366514c69ccccddab5dc58b8d84062 github.com/mitchellh/go-ps 4fdf99ab29366514c69ccccddab5dc58b8d84062
github.com/moby/hyperkit a82b409a87f12fa3306813410c37f4eed270efac github.com/moby/hyperkit a82b409a87f12fa3306813410c37f4eed270efac
github.com/packethost/packngo 9d9409c8c09de7695281e900a776cca03676026a
github.com/radu-matei/azure-sdk-for-go 3b12823551999669c9a325a32472508e0af7978e github.com/radu-matei/azure-sdk-for-go 3b12823551999669c9a325a32472508e0af7978e
github.com/radu-matei/azure-vhd-utils e52754d5569d2a643a7775f72ff2a6cf524f4c25 github.com/radu-matei/azure-vhd-utils e52754d5569d2a643a7775f72ff2a6cf524f4c25
github.com/rn/iso9660wrap 4606f848a055435cdef85305960b0e1bb788d506 github.com/rn/iso9660wrap 4606f848a055435cdef85305960b0e1bb788d506

View File

@ -48,16 +48,17 @@ func (d Device) String() string {
// DeviceCreateRequest type used to create a Packet device // DeviceCreateRequest type used to create a Packet device
type DeviceCreateRequest struct { type DeviceCreateRequest struct {
HostName string `json:"hostname"` HostName string `json:"hostname"`
Plan string `json:"plan"` Plan string `json:"plan"`
Facility string `json:"facility"` Facility string `json:"facility"`
OS string `json:"operating_system"` OS string `json:"operating_system"`
BillingCycle string `json:"billing_cycle"` BillingCycle string `json:"billing_cycle"`
ProjectID string `json:"project_id"` ProjectID string `json:"project_id"`
UserData string `json:"userdata"` UserData string `json:"userdata"`
Tags []string `json:"tags"` Tags []string `json:"tags"`
IPXEScriptUrl string `json:"ipxe_script_url,omitempty"` IPXEScriptUrl string `json:"ipxe_script_url,omitempty"`
AlwaysPXE bool `json:"always_pxe,omitempty"` PublicIPv4SubnetSize int `json:"public_ipv4_subnet_size,omitempty"`
AlwaysPXE bool `json:"always_pxe,omitempty"`
} }
func (d DeviceCreateRequest) String() string { func (d DeviceCreateRequest) String() string {