[VOL-3906] Using the correct ports for ONOS controllers in ofAgent template
Change-Id: I563bfacb7a7298bf76921ef3e17fecd298fb461b
diff --git a/voltha-stack/Chart.yaml b/voltha-stack/Chart.yaml
index 9860942..7de56d8 100644
--- a/voltha-stack/Chart.yaml
+++ b/voltha-stack/Chart.yaml
@@ -28,12 +28,12 @@
name: voltha-stack
appVersion: "2.8-dev"
-version: 0.2.5
+version: 0.2.6
dependencies:
- name: voltha
repository: file://../voltha
- version: 2.9.4
+ version: 2.9.6
condition: voltha.enabled
- name: voltha-adapter-openonu
repository: file://../voltha-adapter-openonu
diff --git a/voltha/Chart.yaml b/voltha/Chart.yaml
index 9719139..a0797bd 100644
--- a/voltha/Chart.yaml
+++ b/voltha/Chart.yaml
@@ -14,7 +14,7 @@
---
apiVersion: "v1"
name: "voltha"
-version: "2.9.5"
+version: "2.9.6"
description: "A Helm chart for Voltha based on K8S resources in Voltha project"
keywords:
- "onf"
diff --git a/voltha/templates/ofagent-deploy.yaml b/voltha/templates/ofagent-deploy.yaml
index 8f77ae3..93286ff 100644
--- a/voltha/templates/ofagent-deploy.yaml
+++ b/voltha/templates/ofagent-deploy.yaml
@@ -18,8 +18,7 @@
{{- $infraNamespaces := default "infra" .Values.global.voltha_infra_namespace -}}
{{- $controllers := dict "controllers" (list) -}}
{{- range $i, $e := until ($onosReplicas | int) -}}
- {{- $port := add $onosOfPort $i -}}
- {{- $current := printf "%s-onos-classic-%d.%s-onos-classic-hs.%s.svc:%d" $infraName $i $infraName $infraNamespaces $port -}}
+ {{- $current := printf "%s-onos-classic-%d.%s-onos-classic-hs.%s.svc:%d" $infraName $i $infraName $infraNamespaces ($onosOfPort | int) -}}
{{- $controllers := (mustAppend $controllers.controllers $current) | set $controllers "controllers" -}}
{{- end -}}
---