Merge pull request #1414 from laf/issue-1197

Updated BGP discovery code to perform autodiscovery if enabled
This commit is contained in:
Paul Gear
2015-07-13 08:21:41 +10:00
3 changed files with 11 additions and 8 deletions

View File

@@ -78,13 +78,7 @@ echo("\n");
// Run device discovery on each of the devices we've detected so far.
foreach ($names as $name) {
$remote_device_id = discover_new_device($name);
if ($remote_device_id) {
log_event("Device $name (" . $ips[$name] .") autodiscovered through ARP on $hostname", $remote_device_id, 'interface', $if);
}
else {
log_event("ARP discovery of $name (" . $ips[$name] . ") failed - check ping and SNMP access", $deviceid, 'interface', $if);
}
$remote_device_id = discover_new_device($name,$device,'ARP');
}
unset($names);