mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-02-05 14:54:17 +01:00
Update multicastAlarm.py
This commit is contained in:
parent
8069ded206
commit
00e4e52352
|
|
@ -33,7 +33,7 @@ def newEntrymultiList(eatyp, eapoc_id, eapoc_sub, eapoc_text):
|
||||||
multiList.append([eatyp, eapoc_id, eapoc_sub, eapoc_text.strip(), timestamp])
|
multiList.append([eatyp, eapoc_id, eapoc_sub, eapoc_text.strip(), timestamp])
|
||||||
logging.debug("Added %s %s %s to multiList", eapoc_id, eapoc_sub, eapoc_text)
|
logging.debug("Added %s %s %s to multiList", eapoc_id, eapoc_sub, eapoc_text)
|
||||||
# check for old entries in multiList
|
# check for old entries in multiList
|
||||||
for i in enumerate(multiList):
|
for i,j in enumerate(multiList):
|
||||||
# we have to remove entries older than timestamp - ignore time
|
# we have to remove entries older than timestamp - ignore time
|
||||||
if int(multiList[i][4]) > timestamp-globalVars.config.getint("multicastAlarm", "multicastAlarm_ignore_time"):
|
if int(multiList[i][4]) > timestamp-globalVars.config.getint("multicastAlarm", "multicastAlarm_ignore_time"):
|
||||||
tmpmultiList.append(multiList[i])
|
tmpmultiList.append(multiList[i])
|
||||||
|
|
@ -47,7 +47,7 @@ def multicastAlarmExec(typ, freq, data):
|
||||||
@return: nothing
|
@return: nothing
|
||||||
"""
|
"""
|
||||||
logging.debug("data before update from multiList: %s", data)
|
logging.debug("data before update from multiList: %s", data)
|
||||||
for i in enumerate(multiList):
|
for i,j in enumerate(multiList):
|
||||||
#update with eapoc_id (RIC)
|
#update with eapoc_id (RIC)
|
||||||
data['ric'] = multiList[i][1]
|
data['ric'] = multiList[i][1]
|
||||||
#update with eapoc_sub (Sub RIC)
|
#update with eapoc_sub (Sub RIC)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue