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:
Adam Amstrong
2012-05-02 17:23:27 +00:00
parent dc66830e95
commit 944130f0bb
4 changed files with 144 additions and 58 deletions
+11
View File
@@ -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;