VOL-417 Part 2 of this fix. Removed the use of the Docker Swarm VIP
which from experience isn't as deterministic as managing the round robin
externally.
Change-Id: I195555108448bb994d7fc599ed66f8be64ed9638
diff --git a/envoy/front-proxy/voltha-grpc-proxy-no-https.template.json b/envoy/front-proxy/voltha-grpc-proxy-no-https.template.json
index 7c5ba2e..7c8e6b1 100644
--- a/envoy/front-proxy/voltha-grpc-proxy-no-https.template.json
+++ b/envoy/front-proxy/voltha-grpc-proxy-no-https.template.json
@@ -149,9 +149,15 @@
"lb_type": "round_robin",
"features": "http2",
"hosts": [
- {
- "url": "tcp://{{- .VolthaVip }}"
- }
+ {{block "viplist" .VolthaRR}}
+ {{- range .}}
+ {{- if isFirst2}}
+ {{- printf "{\"url\": \"tcp://%s\"}" . }}
+ {{- else }}
+ {{- printf ",{\"url\": \"tcp://%s\"}" . }}
+ {{- end }}
+ {{- end}}
+ {{- end}}
]
},
{