aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-12-16 16:46:07 +0100
committerDmitry Vyukov <dvyukov@google.com>2016-12-16 16:46:07 +0100
commitfa3280e0b41e73d6efdc0c6e4721cd6db1b63312 (patch)
treed749f69cc3a35efce723b5d4319d01efa2f4a010
parenta59452c4b2045135d3343a95a44f3673258cad74 (diff)
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.
-rw-r--r--gce/gce.go6
1 files changed, 6 insertions, 0 deletions
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{