VOL-1848 Enable source-routing of Log ops; Enable local routing to arouter
Change-Id: I96a21094f54c95280b65db0fbe2c021e56c7c2d9
diff --git a/voltha/Chart.yaml b/voltha/Chart.yaml
index 5f5b80a..54810f4 100644
--- a/voltha/Chart.yaml
+++ b/voltha/Chart.yaml
@@ -17,5 +17,5 @@
description: A Helm chart for Voltha based on K8S resources in Voltha project
icon: https://guide.opencord.org/logos/cord.svg
-version: 2.1.3
+version: 2.1.4
appVersion: 2.1.1
diff --git a/voltha/templates/afrouter-config.yaml b/voltha/templates/afrouter-config.yaml
index eb2eba1..4fffddc 100644
--- a/voltha/templates/afrouter-config.yaml
+++ b/voltha/templates/afrouter-config.yaml
@@ -30,6 +30,11 @@
"package": "voltha",
"service": "VolthaService",
"router": "vcore"
+ },
+ {
+ "package": "afrouter",
+ "service": "Configuration",
+ "router": "local"
}
]
}
@@ -75,6 +80,17 @@
"overrides": [ ]
},
{
+ "name": "logger",
+ "proto_descriptor": "voltha.pb",
+ "type": "source",
+ "routing_field": "component_name",
+ "backend_cluster": "ro_vcore",
+ "methods": [
+ "UpdateLogLevel",
+ "GetLogLevels"
+ ]
+ },
+ {
"name": "read_only",
"type": "round_robin",
"association": "round_robin",
@@ -137,6 +153,25 @@
"overrides": [ ]
}
]
+ },
+ {
+ "name": "local",
+ "package": "afrouter",
+ "service": "Configuration",
+ "proto_descriptor": "voltha.pb",
+ "routes": [
+ {
+ "name": "logger-local",
+ "proto_descriptor": "voltha.pb",
+ "type": "source",
+ "routing_field": "component_name",
+ "backend_cluster": "api_server",
+ "methods": [
+ "UpdateLogLevel",
+ "GetLogLevels"
+ ]
+ }
+ ]
}
],
"backend_clusters": [
@@ -187,6 +222,23 @@
}{{ if lt (add1 $core_idx) (int $root.Values.replicas.rw_core) }},{{ end }}
{{- end}}
]
+ },
+ {
+ "_COMMENT": "This allows api-server to route to its own configuration api endpoint",
+ "name": "api_server",
+ "backends": [
+ {
+ "name": "api_server0",
+ "type": "server",
+ "connections": [
+ {
+ "name": "api_server01",
+ "addr": "localhost",
+ "port": "55554"
+ }
+ ]
+ }
+ ]
}
],
"api": {