Skip to content
Snippets Groups Projects
Commit e1726b66 authored by Gregor Maier's avatar Gregor Maier
Browse files

Log message if isEntityAllowed returns false

parent 149f5616
No related branches found
No related tags found
No related merge requests found
......@@ -1058,6 +1058,8 @@ IFlowReconcileListener, IInfoProvider, IHAListener {
// generate a new device ID. However, we first check if
// the entity is allowed (e.g., for spoofing protection)
if (!isEntityAllowed(entity, entityClass)) {
logger.info("PacketIn is not allowed {} {}",
entityClass.getName(), entity);
return null;
}
synchronized (deviceKeyLock) {
......@@ -1091,6 +1093,8 @@ IFlowReconcileListener, IInfoProvider, IHAListener {
}
if (!isEntityAllowed(entity, device.getEntityClass())) {
logger.info("PacketIn is not allowed {} {}",
device.getEntityClass().getName(), entity);
return null;
}
int entityindex = -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment