Also added the ifAdmin check to next if statement

This commit is contained in:
laf
2015-03-18 22:27:25 +00:00
parent d6902e10a2
commit 66f872cc25
+1 -1
View File
@@ -258,7 +258,7 @@ foreach ($ports as $port)
$port['update'][$oid] = NULL;
log_event($oid . ": ".$port[$oid]." -> NULL", $device, 'interface', $port['port_id']);
if ($debug) { echo($oid . ": ".$port[$oid]." -> NULL "); } else { echo($oid . " "); }
} elseif ($port[$oid] != $this_port[$oid]) {
} elseif ($port[$oid] != $this_port[$oid] && $this_port['ifAdminStatus'] != 'down') {
$port['update'][$oid] = $this_port[$oid];
log_event($oid . ": ".$port[$oid]." -> " . $this_port[$oid], $device, 'interface', $port['port_id']);
if ($debug) { echo($oid . ": ".$port[$oid]." -> " . $this_port[$oid]." "); } else { echo($oid . " "); }