mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
pseudowire reworking. add device tab (no wonder no one ever asked about it, damn tab was missing!)
git-svn-id: http://www.observium.org/svn/observer/trunk@3116 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -217,6 +217,17 @@ if (device_permitted($vars['device']) || $check_device == $vars['device'])
|
||||
</li>');
|
||||
}
|
||||
|
||||
$device_pw_count = @dbFetchCell("SELECT COUNT(*) FROM `pseudowires` WHERE `device_id` = ?", array($device['device_id']));
|
||||
if ($device_routing_count)
|
||||
{
|
||||
echo('<li class="' . $select['pseudowires'] . '">
|
||||
<a href="'.generate_device_url($device, array('tab' => 'pseudowires')).'">
|
||||
<img src="images/16/arrow_switch.png" align="absmiddle" border="0" /> Pseudowires
|
||||
</a>
|
||||
</li>');
|
||||
}
|
||||
|
||||
|
||||
if ($_SESSION['userlevel'] >= "5" && dbFetchCell("SELECT COUNT(*) FROM links AS L, ports AS I WHERE I.device_id = '".$device['device_id']."' AND I.interface_id = L.local_interface_id"))
|
||||
{
|
||||
$discovery_links = TRUE;
|
||||
|
||||
Reference in New Issue
Block a user