Fixed affinity group assignment.

Change-Id: I2195402000dfbb8eb8adc8693f07fbc4ae212ea2
diff --git a/voltha/templates/rw-core.yaml b/voltha/templates/rw-core.yaml
index 7945d57..1e43147 100644
--- a/voltha/templates/rw-core.yaml
+++ b/voltha/templates/rw-core.yaml
@@ -23,7 +23,7 @@
 {{- $request_timeout := tpl $root.Values.rw_core.timeout_request . }}
 {{- range $i, $e := until $count }}
 {{- $core_idx := add $i 1 }}
-{{- $affinity_group := add1 (mod $i 2) }}
+{{- $affinity_group := add1 (div $i 2) }}
 ---
 apiVersion: apps/v1
 kind: Deployment