diff --git a/html/pages/device.inc.php b/html/pages/device.inc.php index cf28d8128..d907903ee 100644 --- a/html/pages/device.inc.php +++ b/html/pages/device.inc.php @@ -217,6 +217,17 @@ if (device_permitted($vars['device']) || $check_device == $vars['device']) '); } + $device_pw_count = @dbFetchCell("SELECT COUNT(*) FROM `pseudowires` WHERE `device_id` = ?", array($device['device_id'])); + if ($device_routing_count) + { + echo('
Pseudowires
+
+ | ".$pw_a['cpwVcID']." | ".generate_port_link($pw_a)." | + |
+ ".generate_device_link($pw_b)." | ".generate_port_link($pw_b)." | |
| ".$pw_a['ifAlias']." | ".$pw_b['ifAlias']." | ||||
| "); + + if ($pw_a) + { + $pw_a['width'] = "150"; + $pw_a['height'] = "30"; + $pw_a['from'] = $day; + $pw_a['to'] = $now; + $pw_a['bg'] = $bg; + $types = array('bits','upkts','errors'); + foreach ($types as $graph_type) + { + $pw_a['graph_type'] = "port_".$graph_type; + generate_port_thumbnail($pw_a); + } + } + echo(" | "); + + if ($pw_b) + { + $pw_b['width'] = "150"; + $pw_b['height'] = "30"; + $pw_b['from'] = $day; + $pw_b['to'] = $now; + $pw_b['bg'] = $bg; + $types = array('bits','upkts','errors'); + foreach ($types as $graph_type) + { + $pw_b['graph_type'] = "port_".$graph_type; + generate_port_thumbnail($pw_b); + } + } + + echo(" | ||||