*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
function find_child($components, $parent, $level)
{
global $vars;
foreach ($components as $id => $array) {
if ($array['qos-type'] == 3) {
continue;
}
if (($array['parent'] == $components[$parent]['sp-obj']) && ($array['sp-id'] == $components[$parent]['sp-id'])) {
echo "
";
echo "
Traffic by CBQoS Class - ".$components[$vars['policy']]['label']."
";
$graph_array['policy'] = $vars['policy'];
if (isset($vars['class'])) {
$graph_array['class'] = $vars['class'];
}
$graph_type = 'port_cbqos_traffic';
include 'includes/print-interface-graphs.inc.php';
echo "
QoS Drops by CBQoS Class - ".$components[$vars['policy']]['label']."
";
$graph_array['policy'] = $vars['policy'];
if (isset($vars['class'])) {
$graph_array['class'] = $vars['class'];
}
$graph_type = 'port_cbqos_bufferdrops';
include 'includes/print-interface-graphs.inc.php';
echo "
Buffer Drops by CBQoS Class - ".$components[$vars['policy']]['label']."
";
$graph_array['policy'] = $vars['policy'];
if (isset($vars['class'])) {
$graph_array['class'] = $vars['class'];
}
$graph_type = 'port_cbqos_qosdrops';
include 'includes/print-interface-graphs.inc.php';
echo "
\n\n";
}
}