diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php
index 6881e499f..1e5d69579 100644
--- a/html/includes/functions.inc.php
+++ b/html/includes/functions.inc.php
@@ -1,6 +1,6 @@
".$device['hostname'];
if($device['hardware']) { $contents .= " - ".$device['hardware']; }
$contents .= "";
@@ -34,7 +34,6 @@ function generate_device_link($device, $text=0, $start=0, $end=0)
# if($device['hardware']) { $contents .= " - ".$device['hardware']; }
$contents .= "";
-
# if (isset($device['location'])) { $contents .= "" . htmlentities($device['location'])."
"; }
foreach ($graphs as $entry)
{
diff --git a/html/includes/graphs/bgp/cbgp_prefixes.inc.php b/html/includes/graphs/bgp/prefixes.inc.php
similarity index 100%
rename from html/includes/graphs/bgp/cbgp_prefixes.inc.php
rename to html/includes/graphs/bgp/prefixes.inc.php
diff --git a/html/pages/bgp.inc.php b/html/pages/bgp.inc.php
index 70c46e121..03eb95cc4 100644
--- a/html/pages/bgp.inc.php
+++ b/html/pages/bgp.inc.php
@@ -40,7 +40,7 @@ else
echo("
|
- " . $peer['bgpLocalAddr'] . " ".generate_device_link($peer, shorthost($peer['hostname']))." |
+ " . $peer['bgpLocalAddr'] . " ".generate_device_link($peer, shorthost($peer['hostname']), 'bgp/')." |
-> |
" . $peer['bgpPeerIdentifier'] . " ".$peername." |
$peer_type |
diff --git a/html/pages/device/bgp.inc.php b/html/pages/device/bgp.inc.php
index a503984e4..95787692d 100644
--- a/html/pages/device/bgp.inc.php
+++ b/html/pages/device/bgp.inc.php
@@ -10,9 +10,9 @@ echo("
@@ -84,7 +84,7 @@ print_optionbar_end();
if (isset($_GET['opta']) && $_GET['opta'] != "macaccounting") {
foreach(explode(" ", $_GET['opta']) as $graph_type) {
- if($graph_type == "cbgp_prefixes") { list($afi, $safi) = explode(".", $_GET['optb']); $afisafi = "&afi=$afi&safi=$safi"; }
+ if($graph_type == "prefixes") { list($afi, $safi) = explode(".", $_GET['optb']); $afisafi = "&afi=$afi&safi=$safi"; }
if($graph_type == "updates" || $valid_afi_safi[$afi][$safi]) {
$daily_traffic = $config['base_url'] . "/graph.php?id=" . $peer['bgpPeer_id'] . "&type=bgp_$graph_type&from=$day&to=$now&width=210&height=100$afisafi";
$daily_url = $config['base_url'] . "/graph.php?id=" . $peer['bgpPeer_id'] . "&type=bgp_$graph_type&from=$day&to=$now&width=500&height=150$afisafi";