From 7b0c48c0ff2badc55aac22bb99cb50e5715a99b6 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Sun, 17 Apr 2011 16:14:44 +0000 Subject: [PATCH] gogo bgp bullshit git-svn-id: http://www.observium.org/svn/observer/trunk@2090 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/device/routing/bgp.inc.php | 45 ++++++++++++++++++++------- 1 file changed, 34 insertions(+), 11 deletions(-) diff --git a/html/pages/device/routing/bgp.inc.php b/html/pages/device/routing/bgp.inc.php index 1aa0009571..945634613e 100644 --- a/html/pages/device/routing/bgp.inc.php +++ b/html/pages/device/routing/bgp.inc.php @@ -6,18 +6,41 @@ print_optionbar_start(); echo(" -
- No Graphs | - Updates"); +
"); -echo(" | Prefixes: - IPv4 | - VPNv4 | - IPv6 - "); + if (!isset($_GET['optb'])) { echo(""); } + echo("Basic"); + if (!isset($_GET['optb'])) { echo(""); } -echo("| Traffic: - Mac Accounting"); + echo(" | "); + + if ($_GET['optb'] == "updates") { echo(""); } + echo("Updates"); + if ($_GET['optb'] == "updates") { echo(""); } + + echo(" | Prefixes: "); + + if ($_GET['optb'] == "prefixes" && $_GET['optc'] == "ipv4.unicast") { echo(""); } + echo("IPv4"); + if ($_GET['optb'] == "prefixes" && $_GET['optc'] == "ipv4.unicast") { echo(""); } + + echo(" | "); + + if ($_GET['optb'] == "prefixes" && $_GET['optc'] == "vpnv4.unicast") { echo(""); } + echo("VPNv4"); + if ($_GET['optb'] == "prefixes" && $_GET['optc'] == "vpnv4.unicast") { echo(""); } + + echo(" | "); + + if ($_GET['optb'] == "prefixes" && $_GET['optc'] == "ipv6.unicast") { echo(""); } + echo("IPv6"); + if ($_GET['optb'] == "prefixes" && $_GET['optc'] == "ipv6.unicast") { echo(""); } + + echo(" | Traffic: "); + + if ($_GET['optb'] == "macaccounting") { echo(""); } + echo("Mac Accounting"); + if ($_GET['optb'] == "macaccounting") { echo(""); } echo("
"); @@ -71,7 +94,7 @@ while ($peer = mysql_fetch_assoc($peer_query)) } else { - $peername = gethostbyaddr($peer['bgpPeerIdentifier']); + #$peername = gethostbyaddr($peer['bgpPeerIdentifier']); ## FFffuuu DNS if ($peername == $peer['bgpPeerIdentifier']) { unset($peername);