mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
webui: add link to recently added device (#5032)
This commit is contained in:
committed by
Neil Lathwood
parent
63569b5bbe
commit
bbf05feb90
@@ -60,7 +60,8 @@ if ($_POST['hostname']) {
|
||||
$port_assoc_mode = $_POST['port_assoc_mode'];
|
||||
try {
|
||||
$device_id = addHost($hostname, $snmpver, $port, $transport, $poller_group, $force_add, $port_assoc_mode);
|
||||
print_message("Device added ($device_id)");
|
||||
$link = generate_device_url(array('device_id' => $device_id));
|
||||
print_message("Device added <a href='$link'>$hostname ($device_id)</a>");
|
||||
} catch (HostUnreachableException $e) {
|
||||
print_error($e->getMessage());
|
||||
foreach ($e->getReasons() as $reason) {
|
||||
|
Reference in New Issue
Block a user