';
echo '';
diff --git a/html/pages/routing/vrf.inc.php b/html/pages/routing/vrf.inc.php
index 98324af3d1..397e489010 100644
--- a/html/pages/routing/vrf.inc.php
+++ b/html/pages/routing/vrf.inc.php
@@ -201,17 +201,11 @@ if ($_SESSION['userlevel'] >= '5') {
$devices = dbFetchRows('SELECT * FROM `vrfs` AS V, `devices` AS D WHERE `mplsVpnVrfRouteDistinguisher` = ? AND D.device_id = V.device_id', array($vrf['mplsVpnVrfRouteDistinguisher']));
foreach ($devices as $device) {
$hostname = $device['hostname'];
- if (($x % 2)) {
- $device_colour = $list_colour_a;
- } else {
- $device_colour = $list_colour_b;
- }
-
- echo '
';
+ echo '
';
include 'includes/device-header.inc.php';
+ echo '
';
- echo '
';
unset($seperator);
echo '
';
$i = 1;
diff --git a/includes/functions.php b/includes/functions.php
index 735754bdd8..dea7add6c3 100644
--- a/includes/functions.php
+++ b/includes/functions.php
@@ -224,12 +224,18 @@ function getLogo($device)
}
/**
- * @param $device
+ * @param array $device
+ * @param string $class to apply to the image tag
* @return string an image tag with the logo for this device. Images are often wide, not square.
*/
-function getLogoTag($device)
+function getLogoTag($device, $class = null)
{
- return '';
+ $tag = '