blob: 8a831552ce23866a95fd558177db437e994ba469 [file] [log] [blame]
Sergio Slobodrianbe829272017-07-17 14:45:45 -04001{
2 "listeners": [
3 {
4 "address": "tcp://0.0.0.0:50555",
5 "filters": [
6 {
7 "type": "read",
8 "name": "http_connection_manager",
9 "config": {
10 "codec_type": "http2",
11 "stat_prefix": "ingress_http2",
12 "access_log": [
13 {
14 "path": "/envoy/voltha_access_log.log"
15 }
16 ],
17 "route_config": {
18 "virtual_hosts": [
19 {
20 "name": "backend",
21 "domains": ["*"],
22 "routes": [
23 {
24 "timeout_ms": 0,
25 "prefix": "/voltha.VolthaGlobalService/CreateDevice",
26 "cluster": "voltha-grpc-RR"
27 },
28 {
29 "timeout_ms": 0,
30 "prefix": "/voltha.VolthaGlobalService",
31 "cluster": "voltha-grpc"
32 },
33 {
34 "timeout_ms": 0,
35 "prefix": "/voltha.",
36 "cluster": "voltha-grpc"
37 }
38 ]
39 }
40 ]
41 },
42 "filters": [
43 {
44 "type": "decoder",
45 "name": "router",
46 "config": {}
47 }
48 ]
49 }
50 }
51 ]
52 }
53 ],
54 "admin": {
55 "access_log_path": "/envoy/access.log",
56 "address": "tcp://0.0.0.0:8001"
57 },
58 "cluster_manager": {
59 "clusters": [
60 {
61 "name": "voltha-grpc",
62 "connect_timeout_ms": 250,
63 "type": "static",
64 "lb_type": "round_robin",
65 "features": "http2",
66 "hosts": [
67 {
68 "url": "tcp://{{- .VolthaVip }}"
69 }
70 ]
71 },
72 {
73 "name": "voltha-grpc-RR",
74 "connect_timeout_ms": 250,
75 "type": "static",
76 "lb_type": "round_robin",
77 "features": "http2",
78 "hosts": [
79 {{block "addrlist" .VolthaRR}}
80 {{- range .}}
81 {{- if isFirst}}
82 {{- printf "{\"url\": \"tcp://%s\"}" . }}
83 {{- else }}
84 {{- printf ",{\"url\": \"tcp://%s\"}" . }}
85 {{- end }}
86 {{- end}}
87 {{- end}}
88 ]
89 }
90 ]
91 }
92}
93