| "veyron/profiles/internal/gce" |
| func handleGCE(rt veyron2.Runtime, publisher *config.Publisher) bool { |
| // 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. |
| log.Infof("failed to determine public IP address to publish with") |
| ch := make(chan config.Setting) |
| if _, err := publisher.CreateStream(StreamName, "network configuration", ch); err != nil { |
| publishInitialSettings(ch, listenProtocol, listenSpec, prevAddr) |