From 58ad0e5308a995fb5ebced9c79691ed4523b292b Mon Sep 17 00:00:00 2001 From: f-kessler Date: Fri, 10 Aug 2018 23:12:42 +0200 Subject: [PATCH] Clear buffer after multicastAlarm_ric received Fix for networks that mix normal alarms with multicastAlarms (delimiter needs to be deactivated). If the delimiter is deactivated, RICs in the buffer will be deleted only if they are older than multicastAlarm_ignore_time. This could cause a mixture of RICs of the current and the privious multicastAlarm. This problem can be fixed, by clearing the buffer after the multicastAlarm sequence has finished. --- includes/multicastAlarm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/multicastAlarm.py b/includes/multicastAlarm.py index 40a8344..b6d1e7d 100644 --- a/includes/multicastAlarm.py +++ b/includes/multicastAlarm.py @@ -58,6 +58,8 @@ def multicastAlarmExec(freq, data): try: from includes import alarmHandler alarmHandler.processAlarmHandler("POC", freq, data) + multiList = [] + logging.debug("multicastAlarm finished - buffer cleared") except: logging.error("processing alarm failed") logging.debug("processing alarm failed", exc_info=True)