VOL-2214: Clearing of alarm bit map to 0 must be long type
Otherwise mib db complains of type conversion
and fails to send clear alarm events.
Change-Id: I8825cea70008e35b5e33d9907eabbc7c32327951
diff --git a/pyvoltha/adapters/extensions/omci/state_machines/alarm_sync.py b/pyvoltha/adapters/extensions/omci/state_machines/alarm_sync.py
index b63c062..b0c76ff 100644
--- a/pyvoltha/adapters/extensions/omci/state_machines/alarm_sync.py
+++ b/pyvoltha/adapters/extensions/omci/state_machines/alarm_sync.py
@@ -363,7 +363,7 @@
"""
for cid_eid in olt_only:
# First process the alarm clearing
- self.process_alarm_data(cid_eid[0], cid_eid[1], 0, -1)
+ self.process_alarm_data(cid_eid[0], cid_eid[1], 0L, -1)
# Now remove from alarm DB so we match the ONU alarm table
self._database.delete(self._device_id, cid_eid[0], cid_eid[1])