VOL-1257 - OpenOLT Driver Agent should support platforms-defined port topologies

Need to match up the tech-dependent hard-coded alloc-id calculation until the
new Resource Manager supports the dynamic query for differing port technologies.

Change-Id: I9050d78c3246d1be4e869ffdfb3a3f9314b9d959
diff --git a/voltha/adapters/openolt/openolt_platform.py b/voltha/adapters/openolt/openolt_platform.py
index 0a8a2fd..f6b6c2d 100644
--- a/voltha/adapters/openolt/openolt_platform.py
+++ b/voltha/adapters/openolt/openolt_platform.py
@@ -115,6 +115,8 @@
     def mk_alloc_id(self, intf_id, onu_id, idx=0):
         # FIXME - driver should do prefixing 1 << 10 as it is Maple specific
         # return 1<<10 | onu_id<<6 | idx
+        if(self.device_info.technology == "gpon"): # Will be replaced with resource manager
+            return 511 + intf_id * MAX_ONUS_PER_PON + onu_id
         return 1023 + intf_id * MAX_ONUS_PER_PON + onu_id  # FIXME