mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user