");
echo("" . $vrf['vrf_name'] . " " . $vrf['mplsVpnVrfDescription'] . " | ");
echo("" . $vrf['mplsVpnVrfRouteDistinguisher'] . " | ");
#echo("" . $vrf['mplsVpnVrfDescription'] . " | ");
echo("");
$devices = mysql_query("SELECT * FROM `vrfs` AS V, `devices` AS D WHERE `mplsVpnVrfRouteDistinguisher` = '".$vrf['mplsVpnVrfRouteDistinguisher']."' AND D.device_id = V.device_id");
$x=1;
while ($device = mysql_fetch_assoc($devices))
{
if (!is_integer($i/2))
{
if (!is_integer($x/2)) { $dev_colour = $list_colour_a_a; } else { $dev_colour = $list_colour_a_b; }
} else {
if (!is_integer($x/2)) { $dev_colour = $list_colour_b_b; } else { $dev_colour = $list_colour_b_a; }
}
echo("".generate_device_link($device, shorthost($device['hostname'])));
if ($device['vrf_name'] != $vrf['vrf_name']) { echo("Configured : ".$device['vrf_name']."', CAPTION, 'VRF Inconsistency' ,FGCOLOR,'#e5e5e5', BGCOLOR, '#c0c0c0', BORDER, 5, CELLPAD, 4, CAPCOLOR, '#050505');\" onmouseout=\"return nd();\"> "); }
echo(" | ");
$ports = mysql_query("SELECT * FROM `ports` WHERE `ifVrf` = '".$device['vrf_id']."' and device_id = '".$device['device_id']."'");
unset($seperator);
while ($port = mysql_fetch_assoc($ports))
{
$port = array_merge ($device, $port);
if ($_GET['opta'])
{
$port['width'] = "130";
$port['height'] = "30";
$port['from'] = $day;
$port['to'] = $now;
$port['bg'] = "#".$bg;
$port['graph_type'] = "port_".$_GET['opta'];
echo("
".makeshortif($port['ifDescr'])." ");
generate_port_thumbnail($port);
echo(" ".truncate(short_port_descr($port['ifAlias']), 22, '')."
");
} else {
echo($seperator.generate_port_link($port,makeshortif($port['ifDescr'])));
$seperator = ", ";
}
}
echo(" | ");
$x++;
} // End While
echo(" | ");
$i++;
}
echo("