use key otherwise use source if available
@@ -144,6 +144,9 @@ class OneLayer:
confs,
abnormality
)
+ if key in decision:
+ decision[key]['source_ip'] = capture_ip_source
+ elif source_mac in decision:
decision[source_mac]['source_ip'] = capture_ip_source
self.logger.debug('Created message')
for i in range(3):
