| "veyron.io/veyron/veyron2" |
| "veyron.io/veyron/veyron2/config" |
| "veyron.io/veyron/veyron/profiles/internal/gce" |
| func handleGCE(rt veyron2.Runtime, publisher *config.Publisher) *net.IPAddr { |
| // Determine the IP address from GCE's metadata |
| if ip, err := gce.ExternalIPAddress(); err != nil { |
| log.Infof("failed to query GCE metadata: %s", err) |
| // 1:1 NAT case, our network config will not change. |
| pub = &net.IPAddr{IP: ip} |
| log.Infof("failed to determine public IP address to publish with") |
| ch := make(chan config.Setting) |
| stop, err := publisher.CreateStream(SettingsStreamName, "dhcp", ch) |
| // TODO(cnicolaou): stop should be used by the soon to be added |