VOL-1489: Use dpid for mac address rather than fake

Also remove uneeded logical device/port functions.

Also fix exception handling in downstream flow
creation for uni count greater than 1.  This catches
an assertion thrown by resource manager if uni
ranges are not set

Also cast onu_id and parent_port_no to int types
for proper encoding and lookup in the core

Also fix assertion that always calculated as true.

Change-Id: Ic3fa197a931640e7347db9d9b26e62aa28bf54ae
diff --git a/python/adapters/openolt/openolt_platform.py b/python/adapters/openolt/openolt_platform.py
index a52d653..9f63af0 100644
--- a/python/adapters/openolt/openolt_platform.py
+++ b/python/adapters/openolt/openolt_platform.py
@@ -114,7 +114,7 @@
         if intf_type is Port.ETHERNET_NNI:
             return (0x1 << 16) | intf_id
         elif intf_type is Port.PON_OLT:
-            return 0x2 << 28 | intf_id
+            return (0x2 << 28) | intf_id
         else:
             raise Exception('Invalid port type')