Multiple ponsimONU support - template updates

Change-Id: I1b4c79f61e0d0f9b566c09517c939bee890b41a3
diff --git a/ponnet/templates/ponnet-cni.yaml b/ponnet/templates/ponnet-cni.yaml
index a3cf4f8..c72abab 100644
--- a/ponnet/templates/ponnet-cni.yaml
+++ b/ponnet/templates/ponnet-cni.yaml
@@ -90,19 +90,8 @@
   name: ponnet-config
   namespace: kube-system
 data:
+{{- $onucount := (.Values.numOnus|int) -}}
 {{- range $i, $junk := until (.Values.numOlts|int) }}
-  pon{{ $i }}.conf: |
-    {
-      "name": "pon{{ $i }}",
-      "type": "bridge",
-      "bridge": "pon{{ $i }}",
-      "isGateway": false,
-      "ipMask": false,
-      "ipam": {
-        "type": "host-local",
-        "subnet": "10.22.0.0/16"
-      }
-    }
   nni{{ $i }}.conf: |
     {
       "name": "nni{{ $i }}",
@@ -115,8 +104,21 @@
         "subnet": "10.23.0.0/16"
       }
     }
+{{- range $j, $junk1 := until ($onucount) }}
+  pon{{ $i }}.{{ $j }}.conf: |
+    {
+      "name": "pon{{ $i }}.{{ $j }}",
+      "type": "bridge",
+      "bridge": "pon{{ $i }}.{{ $j }}",
+      "isGateway": false,
+      "ipMask": false,
+      "ipam": {
+        "type": "host-local",
+        "subnet": "10.22.0.0/16"
+      }
+    }
 {{- end }}
-
+{{- end }}
 ---
 # Install Ponnnet CNI conf on each slave node.
 kind: DaemonSet