resolved stp log spam for mikrotik devices

This commit is contained in:
laf
2016-06-20 14:37:20 +01:00
parent f236741e49
commit 64797c4225

View File

@@ -102,7 +102,7 @@ if ($stpprotocol == 'ieee8021d' || $stpprotocol == 'unknown') {
}
// Logging if designated root port changed since last db update
if ($stp_db['rootPort'] != $stp['rootPort']) {
if (isset($stp['rootPort']) && $stp_db['rootPort'] != $stp['rootPort']) {
log_event('STP root port changed: '.$stp_db['rootPort'].' > '.$stp['rootPort'], $device, 'stp');
}