From fa3280e0b41e73d6efdc0c6e4721cd6db1b63312 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 16 Dec 2016 16:46:07 +0100 Subject: gce: temporary add external IPs to instances There seems to be some issue with DHCP if instance does not have external IP. Test if it will work with external IP. --- gce/gce.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gce') diff --git a/gce/gce.go b/gce/gce.go index 27bbbf6f2..377d6aba9 100644 --- a/gce/gce.go +++ b/gce/gce.go @@ -122,6 +122,12 @@ func (ctx *Context) CreateInstance(name, machineType, image, sshkey string) (str NetworkInterfaces: []*compute.NetworkInterface{ &compute.NetworkInterface{ Network: "global/networks/default", + AccessConfigs: []*compute.AccessConfig{ + { + Name: "External NAT", + Type: "ONE_TO_ONE_NAT", + }, + }, }, }, Scheduling: &compute.Scheduling{ -- cgit mrf-deployment