fix unsetting of cache in the wrong place on discovery of bgp peers on junos, whoops

git-svn-id: http://www.observium.org/svn/observer/trunk@1738 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-11-24 12:07:09 +00:00
parent 831724ab31
commit d887e82052
9 changed files with 197 additions and 182 deletions

View File

@@ -157,11 +157,6 @@ if (isset($peerlist))
mysql_query("INSERT INTO `bgpPeers_cbgp` (device_id,bgpPeerIdentifier, afi, safi) VALUES ('".$device['device_id']."','".$peer['ip']."','$afi','$safi')");
}
}
unset($j_afisafi);
unset($j_prefixes);
unset($j_bgp);
unset($j_peerIndexes);
} # os=junos
$af_query = mysql_query("SELECT * FROM bgpPeers_cbgp WHERE `device_id` = '".$device['device_id']."' AND bgpPeerIdentifier = '".$peer['ip']."'");
@@ -176,6 +171,11 @@ if (isset($peerlist))
} # AF list
} # os=ios|junos
} # Foreach
unset($j_afisafi);
unset($j_prefixes);
unset($j_bgp);
unset($j_peerIndexes);
} # isset
## Delete removed peers